Release v5.0.1 🚀 #639
This file contains hidden or 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@v5 | |
| with: | |
| submodules: true | |
| - name: Set up Python 3.14 | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.14" | |
| - uses: pre-commit/action@v3.0.1 | |
| 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" | |
| - version: "3.10" | |
| - version: "3.11" | |
| - version: "3.12" | |
| - version: "3.13" | |
| - version: "3.14" | |
| - version: "3.14t" | |
| - version: "3.15.0-beta.1" | |
| - version: "3.15.0-beta.1" | |
| architecture: "x64-freethreaded" | |
| pytest-version: | |
| - ">=8.1.1" | |
| steps: | |
| - uses: actions/checkout@v5 | |
| with: | |
| submodules: true | |
| - uses: astral-sh/setup-uv@v7 | |
| - name: "Set up Python ${{ matrix.python.version }}${{ matrix.python.architecture && format(' ({0})', matrix.python.architecture) || '' }}" | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: "${{ matrix.python.version }}" | |
| architecture: "${{ matrix.python.architecture }}" | |
| - if: matrix.config == 'valgrind' || matrix.config == 'pytest-benchmark' | |
| name: Install valgrind | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install valgrind -y | |
| - name: Install dependencies with pytest${{ matrix.pytest-version }} | |
| run: | | |
| if [ "${{ matrix.config }}" == "valgrind" ]; then | |
| export PYTEST_CODSPEED_FORCE_EXTENSION_BUILD=1 | |
| fi | |
| uv sync --all-extras --dev --locked --verbose | |
| uv pip install "pytest${{ matrix.pytest-version }}" | |
| uv pip uninstall pytest-benchmark | |
| - if: matrix.config == 'pytest-benchmark-4' | |
| name: Install pytest-benchmark 4.0.0 | |
| run: uv pip install pytest-benchmark~=4.0.0 | |
| - if: matrix.config == 'pytest-benchmark-5' | |
| name: Install pytest-benchmark 5.0.0 | |
| run: uv pip install pytest-benchmark~=5.0.0 | |
| - name: Run tests | |
| run: uv run --no-sync pytest -vs | |
| walltime-macos-test: | |
| runs-on: macos-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| with: | |
| submodules: true | |
| - uses: astral-sh/setup-uv@v7 | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.14" | |
| - name: Install dependencies | |
| run: uv sync --all-extras --dev --locked | |
| # Samply cannot profile signed binaries, this is a temporary workaround | |
| - run: brew install bash | |
| - name: Run the benchmarks | |
| uses: CodSpeedHQ/action@main | |
| env: | |
| CODSPEED_SKIP_UPLOAD: "true" | |
| with: | |
| run: uv run pytest tests/benchmarks/test_bench_fibo.py --codspeed | |
| mode: walltime | |
| # TODO: Remove this once the runner has been released with macos support | |
| runner-version: branch:main | |
| all-checks: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - run: echo "All CI checks passed." | |
| needs: | |
| - static-analysis | |
| - tests | |
| - walltime-macos-test |