Merge pull request #240 from cyrraz/feat/remove-requests-dep #260
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
| # This workflow will install Python dependencies, run tests with a variety of Python versions | |
| name: CI | |
| on: | |
| push: | |
| branches: ["main"] | |
| pull_request: | |
| branches: ["main"] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Install uv and set the python version | |
| uses: astral-sh/setup-uv@v7 | |
| with: | |
| version: "0.6.8" | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install the project | |
| run: | | |
| uv sync --group dev --group test | |
| - name: Run pre-commit | |
| run: | | |
| uv run pre-commit run --all-files | |
| - name: Test with pytest | |
| run: | | |
| uv run python -m pytest -r sa --mpl --mpl-results-path=pytest_results -n auto | |
| - name: Upload pytest test results | |
| uses: actions/upload-artifact@v5 | |
| if: failure() | |
| with: | |
| name: pytest_results-${{ matrix.python-version }} | |
| retention-days: 3 | |
| path: pytest_results |