build(deps): bump pypa/gh-action-pypi-publish from 1.14.1 to 1.14.2 #413
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: Test | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| test: | |
| name: ${{ matrix.name }} | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - name: "Linux (Python 3.13)" | |
| os: ubuntu-latest | |
| python-version: "3.13" | |
| - name: "Linux (Python 3.14)" | |
| os: ubuntu-latest | |
| python-version: "3.14" | |
| # TODO(schwehr): Enable these when dev slows down. | |
| # - name: "macOS (Python 3.14)" | |
| # os: macos-latest | |
| # python-version: "3.14" | |
| # - name: "Windows (Python 3.14)" | |
| # os: windows-latest | |
| # python-version: "3.14" | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| persist-credentials: false | |
| - name: Set up uv | |
| uses: astral-sh/setup-uv@c771a70e6277c0a99b617c7a806ffedaca235ff9 # v9.0.0 | |
| with: | |
| enable-cache: true | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install dependencies | |
| run: uv sync | |
| - name: Run pre-commit checks | |
| run: uv run pre-commit run --all-files | |
| - name: Run test suite with pytest and check coverage | |
| if: success() || failure() | |
| run: uv run pytest --benchmark-skip | |
| - name: Write coverage report to Job Summary (Linux only) | |
| if: >- | |
| (success() || failure()) && | |
| matrix.os == 'ubuntu-latest' && | |
| matrix.python-version == '3.14' | |
| run: | | |
| echo "### Test Coverage Report (Python 3.14)" >> $GITHUB_STEP_SUMMARY | |
| echo "" >> $GITHUB_STEP_SUMMARY | |
| uv run coverage report --format=markdown --fail-under=95 >> $GITHUB_STEP_SUMMARY | |
| - name: Run type checks with ty (Linux only) | |
| if: (success() || failure()) && matrix.os == 'ubuntu-latest' | |
| run: uv run ty check --output-format github | |
| benchmark: | |
| name: "Benchmarks (Linux Python 3.14)" | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| persist-credentials: false | |
| - name: Set up uv | |
| uses: astral-sh/setup-uv@c771a70e6277c0a99b617c7a806ffedaca235ff9 # v9.0.0 | |
| with: | |
| enable-cache: true | |
| python-version: "3.14" | |
| - name: Install dependencies | |
| run: uv sync | |
| - name: Run benchmark tests | |
| run: uv run pytest --benchmark-only --no-cov |