[pre-commit.ci] pre-commit autoupdate #403
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: main | |
| # Automatically cancel a previous run. | |
| concurrency: | |
| group: ${{ github.head_ref || github.run_id }} | |
| cancel-in-progress: true | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - '*' | |
| jobs: | |
| run-tests: | |
| name: Run tests for ${{ matrix.os }} on ${{ matrix.python-version }} | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: ['ubuntu-latest', 'macos-latest', 'windows-latest'] | |
| python-version: ['3.8', '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 | |
| allow-prereleases: true | |
| - uses: prefix-dev/setup-pixi@v0.7.0 | |
| with: | |
| pixi-version: v0.22.0 | |
| run-install: false | |
| - run: pip install tox-uv | |
| - name: Run tests. | |
| shell: bash -l {0} | |
| run: tox -e test -- --cov=./ --cov-report=xml | |
| - name: Upload coverage reports of tests. | |
| uses: codecov/codecov-action@v4 |