dependencies: update pre-commit hook astral-sh/ruff-pre-commit to v0.… #395
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-check-test | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| pull_request: | |
| branches: [ "main" ] | |
| permissions: | |
| contents: read | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ['3.10', '3.11', '3.12', '3.13', '3.14'] | |
| env: | |
| UV_PYTHON: ${{ matrix.python-version }} | |
| COLLECT_COVERAGE: ${{ matrix.python-version == '3.13' }} | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 2 | |
| - uses: astral-sh/setup-uv@v7 | |
| with: | |
| enable-cache: true | |
| cache-dependency-glob: "uv.lock" | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install the project | |
| run: make install | |
| - name: Run tests | |
| run: | | |
| if [ "$COLLECT_COVERAGE" = "true" ]; then | |
| make coverage-ci | |
| else | |
| make tests | |
| fi | |
| - name: Upload coverage to Codecov | |
| if: env.COLLECT_COVERAGE == 'true' | |
| uses: Wandalen/wretry.action@v3 | |
| with: | |
| action: codecov/codecov-action@v4 | |
| attempt_delay: 10000 | |
| attempt_limit: 10 | |
| with: | | |
| fail_ci_if_error: true | |
| verbose: true | |
| files: coverage.xml | |
| codecov_yml_path: codecov.yml | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| check: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ['3.14'] | |
| env: | |
| UV_PYTHON: ${{ matrix.python-version }} | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: astral-sh/setup-uv@v7 | |
| with: | |
| enable-cache: true | |
| cache-dependency-glob: "uv.lock" | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install the project | |
| run: make install | |
| - name: Run the pre-commit static checks | |
| run: make check |