Repository navigation
Stage 5: use the alternate screen for the built-in pager in reserved rendering #1650
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
| # For documentation on GitHub Actions Workflows, see: | |
| # https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions | |
| name: Tests | |
| on: | |
| pull_request: | |
| types: [opened, synchronize, reopened] | |
| push: | |
| branches: [main] | |
| permissions: | |
| contents: read | |
| jobs: | |
| tests: | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, macos-latest, windows-latest] | |
| python-version: ["3.11", "3.12", "3.13", "3.14", "3.15", "3.15t"] | |
| fail-fast: false | |
| runs-on: ${{ matrix.os }} | |
| permissions: | |
| contents: read | |
| # Lets the Codecov steps authenticate with a short-lived OIDC token instead of the | |
| # CODECOV_TOKEN secret, which Dependabot-triggered runs are not given. | |
| id-token: write | |
| defaults: | |
| run: | |
| shell: bash | |
| steps: | |
| - name: Check out | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| fetch-depth: 0 # Needed for setuptools_scm to work correctly | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@68559e99cc807c1eb7e9238fd43a15bba460eec2 # v10.3.3 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| allow-prereleases: true | |
| - name: Install the project | |
| run: uv sync --no-default-groups --group test | |
| - name: Run tests | |
| run: uv run --no-default-groups --group test python -Xutf8 -m pytest tests | |
| - name: Upload test results to Codecov | |
| if: ${{ !cancelled() }} | |
| uses: codecov/codecov-action@303a32d7a59b442fa8d48b6a1cc6825c09c847a5 # v7.1.1 | |
| with: | |
| flags: python${{ matrix.python-version }} | |
| name: codecov-umbrella-test-results | |
| report_type: test_results | |
| use_oidc: true | |
| - name: Upload coverage to Codecov | |
| uses: codecov/codecov-action@303a32d7a59b442fa8d48b6a1cc6825c09c847a5 # v7.1.1 | |
| with: | |
| env_vars: OS,PYTHON | |
| fail_ci_if_error: true | |
| flags: unittests | |
| name: codecov-umbrella | |
| use_oidc: true | |
| verbose: true | |
| # Single stable status check for the whole test matrix, so branch protection | |
| # doesn't need updating every time the OS/Python matrix changes. | |
| all-tests-passed: | |
| name: All Tests Passed | |
| if: always() | |
| needs: [tests] | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Fail if any matrix job did not succeed | |
| if: needs.tests.result != 'success' | |
| run: exit 1 |