Skip to content

ci: Modularize CI pipeline and test Python >= 3.11 #41

ci: Modularize CI pipeline and test Python >= 3.11

ci: Modularize CI pipeline and test Python >= 3.11 #41

Workflow file for this run

name: Backend
on:
pull_request:
paths:
- "src/**"
- "tests/**"
- "pyproject.toml"
- "Makefile"
- "requirements*.txt"
- ".github/workflows/backend.yml"
permissions:
contents: read
jobs:
lint-backend:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: 'pip'
- name: Lint backend
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade pre-commit
pre-commit run --all-files ruff
test-backend:
runs-on: ubuntu-latest
continue-on-error: ${{ matrix.python-version != "3.12" }}

Check failure on line 34 in .github/workflows/backend.yml

View workflow run for this annotation

GitHub Actions / Backend

Invalid workflow file

The workflow is not valid. .github/workflows/backend.yml (Line: 34, Col: 24): Unexpected symbol: '"3'. Located at position 26 within expression: matrix.python-version != "3.12" .github/workflows/backend.yml (Line: 34, Col: 24): Unexpected value '${{ matrix.python-version != "3.12" }}'
strategy:
fail-fast: true
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Build frontend and share library
shell: bash
run: make build-frontend
- name: Build package distributions
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade build
python -m build
- name: Install
run: |
python -m pip install dist/*.whl --no-dependencies
python -m pip install -r requirements.txt -r requirements-test.txt
- name: Pytest
timeout-minutes: 5
run: python -m pytest