From 7f2c3a52a538cf57c49d9f2ea7ec206fe5dd5324 Mon Sep 17 00:00:00 2001 From: Jonas Engicht Date: Tue, 12 Nov 2024 13:50:43 +0100 Subject: [PATCH] update ci workflow --- .github/workflows/python-test.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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: