[pre-commit.ci] pre-commit autoupdate #497
Workflow file for this run
  
    
      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
    
  
  
    
  | # https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions | |
| name: Python tests | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: ["*"] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| env: | |
| PIP_ROOT_USER_ACTION: ignore | |
| COLUMNS: "200" | |
| FORCE_COLOR: "1" | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ["3.10", "3.11", "3.12"] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| filter: blob:none | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - uses: hynek/setup-cached-uv@v2 | |
| with: | |
| cache-dependency-path: pyproject.toml | |
| - name: dependencies | |
| # TODO: remove typer constraint after fixing https://github.com/WaylonWalker/coverage-rich/issues/4 | |
| run: uv pip install --system .[test,typehints,myst] coverage-rich 'typer <0.14' 'anyconfig[toml] >=0.14' | |
| - name: tests | |
| run: coverage run -m pytest --verbose --color=yes | |
| - name: show coverage | |
| run: coverage-rich report | |
| - name: upload coverage | |
| uses: codecov/codecov-action@v5 | |
| with: | |
| fail_ci_if_error: true | |
| token: c66a2830-d3c7-4ae7-a230-21aef89dcf65 |