Bump the ci-dependencies group with 5 updates #315
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
| name: Python CI | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| permissions: | |
| contents: read | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-slim | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| persist-credentials: false | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0 | |
| with: | |
| enable-cache: true | |
| resolution-strategy: "lowest" | |
| - name: Setup Python | |
| uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 | |
| with: | |
| python-version-file: "pyproject.toml" | |
| - name: Sync dependencies | |
| run: uv sync --group dev --group tests | |
| - name: Run prek | |
| run: uv run prek run --all-files | |
| - name: Check formatting | |
| run: uv run ruff format --check . | |
| - name: Run Ruff checks | |
| run: uv run ruff check --output-format=github . | |
| - name: Run mypy | |
| run: uv run mypy --strict src/ tests/ | |
| - name: Run ty | |
| run: uv run ty check . | |
| test: | |
| runs-on: ubuntu-slim | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"] | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| persist-credentials: false | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0 | |
| with: | |
| enable-cache: true | |
| resolution-strategy: "lowest" | |
| - name: Setup Python | |
| uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Sync dependencies | |
| run: uv sync --group dev --group tests | |
| - name: Run tests with coverage | |
| run: uv run coverage run -m pytest -v --junitxml=junit.xml | |
| - name: Create coverage report | |
| run: uv run coverage xml -o coverage.xml | |
| - name: Upload coverage reports | |
| if: ${{ !cancelled() }} | |
| uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 | |
| with: | |
| name: coverage-py${{ matrix.python-version }} | |
| path: | | |
| coverage.xml | |
| junit.xml | |
| if-no-files-found: error | |
| codecov: | |
| runs-on: ubuntu-slim | |
| needs: [test] | |
| if: ${{ always() }} | |
| permissions: | |
| contents: read | |
| id-token: write | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| persist-credentials: false | |
| - name: Download coverage reports | |
| if: ${{ !cancelled() }} | |
| uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 | |
| with: | |
| name: coverage-py3.14 | |
| path: coverage | |
| - name: Upload coverage to Codecov | |
| if: ${{ !cancelled() }} | |
| uses: codecov/codecov-action@57e3a136b779b570ffcdbf80b3bdc90e7fab3de2 # v6.0.0 | |
| with: | |
| report_type: coverage | |
| use_oidc: true | |
| files: coverage/coverage.xml | |
| - name: Upload test results to Codecov | |
| if: ${{ !cancelled() }} | |
| uses: codecov/codecov-action@57e3a136b779b570ffcdbf80b3bdc90e7fab3de2 # v6.0.0 | |
| with: | |
| report_type: test_results | |
| use_oidc: true | |
| files: coverage/junit.xml |