diff --git a/.github/workflows/python-test.yml b/.github/workflows/python-test.yml index 7fa5e69..0685656 100644 --- a/.github/workflows/python-test.yml +++ b/.github/workflows/python-test.yml @@ -5,7 +5,7 @@ name: Package test on: push: - branches: [ "main" ] + branches: [ "main", "dev"] pull_request: branches: [ "main" ] @@ -28,6 +28,7 @@ jobs: run: | python -m pip install --upgrade pip python -m pip install flake8 pytest + python -m pip install mypy if [ -f requirements.txt ]; then pip install -r requirements.txt; fi - name: Lint with flake8 run: | @@ -35,7 +36,10 @@ jobs: 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 + - name: Type checking + run: | + mypy + - name: Test with unittest run: | bash run_tests.sh build: