From ceba94df72e0a138c1d6bd98f2d308994938ed1c Mon Sep 17 00:00:00 2001 From: Thomas S Date: Thu, 26 Sep 2024 15:24:07 +0200 Subject: [PATCH] wip --- .github/workflows/backend.yml | 29 +++++++++++++++++++++++------ 1 file changed, 23 insertions(+), 6 deletions(-) diff --git a/.github/workflows/backend.yml b/.github/workflows/backend.yml index 4b6e71ebf..63376bc20 100644 --- a/.github/workflows/backend.yml +++ b/.github/workflows/backend.yml @@ -3,12 +3,12 @@ name: Backend on: pull_request: paths: - - 'src/**' - - 'tests/**' - - pyproject.toml - - Makefile - - requirements*.txt - - .github/workflows/backend.yml + - "src/**" + - "tests/**" + - "pyproject.toml" + - "Makefile" + - "requirements*.txt" + - ".github/workflows/backend.yml" permissions: contents: read @@ -21,6 +21,7 @@ jobs: - uses: actions/setup-python@v5 with: python-version: "3.12" + cache: 'pip' - name: Lint backend run: | python -m pip install --upgrade pip @@ -35,6 +36,7 @@ jobs: - uses: actions/setup-python@v5 with: python-version: "3.12" + cache: 'pip' - name: Build frontend and share library shell: bash run: make build-frontend @@ -50,3 +52,18 @@ jobs: - name: Pytest timeout-minutes: 5 run: python -m pytest + + test-backend-on-old-python: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: ["3.9", "3.10", "3.11"] + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + cache: 'pip' + - continue-on-error: True + run: | + python --version