From 56fa6386d6367d4dc4812d34e058f50fd1aaabb9 Mon Sep 17 00:00:00 2001 From: Kyle Mandli Date: Fri, 10 May 2024 11:07:17 -0400 Subject: [PATCH] Add lint and testing to CI --- .github/workflows/testing.yml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index 47ebd675a..15f2b4956 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -41,12 +41,12 @@ jobs: run: | cd geoclaw git checkout ${{ github.ref }} - # - name: Lint with flake8 - # run: | - # # stop the build if there are Python syntax errors or undefined names - # flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics - # # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide - # flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics - # - name: Test with pytest - # run: | - # pytest + - name: Lint with flake8 + run: | + # stop the build if there are Python syntax errors or undefined names + flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics + # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide + flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics + - name: Test with pytest + run: | + pytest