Bump astral-sh/setup-uv from 7bbb36f4345bf059635fb6d04d0fb369ca42338e to 445689ea25e0de0a23313031f5fe577c74ae45a1 #88
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
| # This workflow will install Python dependencies, run tests and lint with a single version of Python | |
| # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python | |
| name: Python Tests | |
| on: | |
| push: | |
| branches-ignore: [ "main" ] | |
| pull_request: | |
| branches: [ "**" ] | |
| permissions: | |
| contents: write | |
| checks: write | |
| pull-requests: write | |
| jobs: | |
| run-tests: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| # Adjust the matrix to test against different or multiple versions. | |
| # Note that adding more versions will result in a code coverage report | |
| # for each version; you may wish to adjust that step's behavior. | |
| python-version: ["3.13"] | |
| steps: | |
| - uses: actions/checkout@09d2acae674a48949e3602304ab46fd20ae0c42f | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: astral-sh/setup-uv@445689ea25e0de0a23313031f5fe577c74ae45a1 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Ruff check | |
| run: | | |
| uvx ruff check | |
| - name: Install dependencies | |
| run: | | |
| uv sync | |
| - name: Test with pytest | |
| run: | | |
| uv run pytest | |
| - name: Report coverage | |
| uses: MishaKav/pytest-coverage-comment@13d3c18e21895566c746187c9ea74736372e5e91 | |
| with: | |
| pytest-xml-coverage-path: ./htmlcov/coverage.xml | |
| title: Coverage report for Python ${{ matrix.python-version }} | |
| remove-link-from-badge: true | |
| unique-id-for-comment: ${{ matrix.python-version }} | |
| coverage-path-prefix: src/ |