Skip to content

11

11 #22

Workflow file for this run

name: CI • Pytest
on:
push:
branches: [ main, master ]
paths:
- "**.py"
- "requirements/**"
- "pytest.ini"
- ".github/workflows/ci-tests.yml"
pull_request:
branches: [ main, master ]
paths:
- "**.py"
- "requirements/**"
- "pytest.ini"
- ".github/workflows/ci-tests.yml"
workflow_dispatch:
jobs:
tests:
name: Python ${{ matrix.python-version }} • ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
python-version: ["3.10", "3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: "pip"
- name: Install deps
run: |
python -m pip install -U pip
python -m pip install -r requirements/requirements.build.txt -c requirements/constraints.ci.txt
python -m pip install pytest
- name: Run unit tests
run: |
pytest -q --disable-warnings