From e0efe9acb030f7342959f61f9014ddcd64ed610a Mon Sep 17 00:00:00 2001 From: germanhydrogen Date: Tue, 16 Apr 2024 11:59:32 +0200 Subject: [PATCH] Added mypy to automated testing --- .github/workflows/pytest.yaml | 23 ------------------- .github/workflows/tests.yaml | 43 +++++++++++++++++++++++++++++++++++ 2 files changed, 43 insertions(+), 23 deletions(-) delete mode 100644 .github/workflows/pytest.yaml create mode 100644 .github/workflows/tests.yaml diff --git a/.github/workflows/pytest.yaml b/.github/workflows/pytest.yaml deleted file mode 100644 index 473c867..0000000 --- a/.github/workflows/pytest.yaml +++ /dev/null @@ -1,23 +0,0 @@ -name: PyTest -on: push - -jobs: - test: - runs-on: ubuntu-latest - timeout-minutes: 10 - - steps: - - name: Check out repository code - uses: actions/checkout@v4 - - - name: Install poetry - run: pipx install poetry - - - name: Setup Python - uses: actions/setup-python@v5 - with: - python-version: '3.11' - cache: 'poetry' - - - run: poetry install --all-extras - - run: poetry run pytest -v \ No newline at end of file diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml new file mode 100644 index 0000000..ce3d80e --- /dev/null +++ b/.github/workflows/tests.yaml @@ -0,0 +1,43 @@ +name: Tests +on: push + +jobs: + pytest: + runs-on: ubuntu-latest + timeout-minutes: 10 + + steps: + - name: Check out repository code + uses: actions/checkout@v4 + + - name: Install poetry + run: pipx install poetry + + - name: Setup Python + uses: actions/setup-python@v5 + with: + python-version: '3.11' + cache: 'poetry' + + - run: poetry install --all-extras + - run: poetry run pytest -v + + mypy: + runs-on: ubuntu-latest + timeout-minutes: 10 + + steps: + - name: Check out repository code + uses: actions/checkout@v4 + + - name: Install poetry + run: pipx install poetry + + - name: Setup Python + uses: actions/setup-python@v5 + with: + python-version: '3.11' + cache: 'poetry' + + - run: poetry install --all-extras + - run: poetry run mypy \ No newline at end of file