test: make it slower #268
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
branches: [master] | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
static-analysis: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python 3.11 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.11" | |
- uses: pre-commit/[email protected] | |
with: | |
extra_args: --all-files | |
tests: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
config: | |
- headless | |
- pytest-benchmark-4 | |
- pytest-benchmark-5 | |
- valgrind | |
python-version: | |
- "3.9" | |
- "3.10" | |
- "3.11" | |
- "3.12" | |
- "3.13" | |
pytest-version: | |
- ">=8.1.1" | |
steps: | |
- uses: actions/checkout@v4 | |
- name: "Set up Python ${{ matrix.python-version }}" | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "${{ matrix.python-version }}" | |
- if: matrix.config == 'valgrind' || matrix.config == 'pytest-benchmark' | |
name: Install valgrind | |
run: sudo apt-get install valgrind -y | |
- name: Install dependencies with pytest${{ matrix.pytest-version }} | |
run: | | |
pip install .[dev,compat,build] "pytest${{ matrix.pytest-version }}" | |
pip uninstall -y pytest-benchmark | |
- if: matrix.config == 'pytest-benchmark-4' | |
name: Install pytest-benchmark 4.0.0 | |
run: pip install pytest-benchmark~=4.0.0 | |
- if: matrix.config == 'pytest-benchmark-5' | |
name: Install pytest-benchmark 5.0.0 | |
run: pip install pytest-benchmark~=5.0.0 | |
- name: Run tests | |
run: pytest -vs | |
all-checks: | |
runs-on: ubuntu-latest | |
steps: | |
- run: echo "All CI checks passed." | |
needs: | |
- static-analysis | |
- tests |