From 242e8e12756a7adf4e56ce18a4110d76effd719f Mon Sep 17 00:00:00 2001 From: Mathijs de Bruin Date: Wed, 28 Aug 2024 11:28:38 +0100 Subject: [PATCH] Run unit tests with all supported Python versions. --- .github/workflows/pytest.yaml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pytest.yaml b/.github/workflows/pytest.yaml index d8b68c7f05..d36ac99075 100644 --- a/.github/workflows/pytest.yaml +++ b/.github/workflows/pytest.yaml @@ -3,8 +3,11 @@ name: Pytest on: [workflow_call] jobs: - mypy: + pytest: runs-on: ubuntu-latest + strategy: + matrix: + python-version: ['3.9', '3.10', '3.11', '3.12'] defaults: run: working-directory: ./backend @@ -13,7 +16,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v4 with: - python-version: '3.9' + python-version: ${{ matrix.python-version }} cache: 'pip' - name: Install Poetry run: pip install poetry