chore(deps): bump codecov/codecov-action from 5.3.1 to 5.4.0 #3904
Workflow file for this run
This file contains 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: Tests | |
on: | |
- push | |
- pull_request | |
permissions: | |
contents: read | |
jobs: | |
tests: | |
name: "${{ matrix.session }} (using Python ${{ matrix.python-version }} on ${{ matrix.runs-on || 'ubuntu-latest' }})" | |
runs-on: "${{ matrix.runs-on || 'ubuntu-latest' }}" | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- { python-version: "3.13", session: "flake8" } | |
- { python-version: "3.13", session: "flake8", runs-on: "macos-15" } | |
- { python-version: "3.13", session: "flake8", runs-on: "windows-2022" } | |
- { python-version: "3.13", session: "safety" } | |
- { python-version: "3.13", session: "pylint" } | |
- { python-version: "3.13", session: "pylint", runs-on: "macos-15" } | |
- { python-version: "3.13", session: "pylint", runs-on: "windows-2022" } | |
- { python-version: "3.12", session: "pylint" } | |
- { python-version: "3.11", session: "pylint" } | |
- { python-version: "3.10", session: "pylint" } | |
- { python-version: "3.9", session: "pylint" } | |
- { python-version: "3.8", session: "pylint" } | |
- { python-version: "3.13", session: "mypy" } | |
- { python-version: "3.13", session: "mypy", runs-on: "macos-15" } | |
- { python-version: "3.13", session: "mypy", runs-on: "windows-2022" } | |
- { python-version: "3.12", session: "mypy" } | |
- { python-version: "3.11", session: "mypy" } | |
- { python-version: "3.10", session: "mypy" } | |
- { python-version: "3.9", session: "mypy" } | |
- { python-version: "3.8", session: "mypy" } | |
- { python-version: "3.13", session: "tests" } | |
- { python-version: "3.13", session: "tests", runs-on: "macos-15" } | |
- { python-version: "3.13", session: "tests", runs-on: "windows-2022" } | |
- { python-version: "3.12", session: "tests" } | |
- { python-version: "3.11", session: "tests" } | |
- { python-version: "3.10", session: "tests" } | |
- { python-version: "3.9", session: "tests" } | |
- { python-version: "3.8", session: "tests" } | |
- { python-version: "3.13", session: "typeguard" } | |
- { python-version: "3.13", session: "typeguard", runs-on: "macos-15" } | |
- { python-version: "3.13", session: "typeguard", runs-on: "windows-2022" } | |
- { python-version: "3.13", session: "xdoctest" } | |
- { python-version: "3.13", session: "xdoctest", runs-on: "macos-15" } | |
- { python-version: "3.13", session: "xdoctest", runs-on: "windows-2022" } | |
- { python-version: "3.13", session: "docs" } | |
env: | |
NOXSESSION: "${{ matrix.session }}" | |
steps: | |
- name: Check out the repository | |
uses: actions/[email protected] | |
- name: Set up Python "${{ matrix.python-version }}" | |
uses: actions/[email protected] | |
with: | |
python-version: "${{ matrix.python-version }}" | |
- name: Upgrade pip | |
run: | | |
pip install --constraint=.github/workflows/constraints.txt pip | |
pip --version | |
- name: Install Poetry | |
run: | | |
pip install --constraint=.github/workflows/constraints.txt poetry | |
poetry --version | |
- name: Install Nox, nox-poetry and poetry-plugin-export | |
run: | | |
pip install --constraint=.github/workflows/constraints.txt nox nox-poetry poetry-plugin-export | |
nox --version | |
- name: Run Nox | |
run: | | |
nox --force-color --python="${{ matrix.python-version }}" | |
- name: Upload coverage data | |
if: always() && matrix.session == 'tests' | |
uses: "actions/[email protected]" | |
with: | |
name: "coverage-data-${{ matrix.python-version }}-${{ matrix.runs-on || 'ubuntu-latest' }}" | |
path: ".coverage.*" | |
include-hidden-files: true | |
- name: Upload documentation | |
if: matrix.session == 'docs' | |
uses: "actions/[email protected]" | |
with: | |
name: docs | |
path: "docs/_build" | |
coverage: | |
runs-on: ubuntu-latest | |
needs: tests | |
steps: | |
- name: Check out the repository | |
uses: actions/[email protected] | |
- name: Set up Python 3.13 | |
uses: actions/[email protected] | |
with: | |
python-version: "3.13" | |
- name: Upgrade pip | |
run: | | |
pip install --constraint=.github/workflows/constraints.txt pip | |
pip --version | |
- name: Install Poetry | |
run: | | |
pip install --constraint=.github/workflows/constraints.txt poetry | |
poetry --version | |
- name: Install Nox, nox-poetry and poetry-plugin-export | |
run: | | |
pip install --constraint=.github/workflows/constraints.txt nox nox-poetry poetry-plugin-export | |
nox --version | |
- name: Download coverage data | |
uses: actions/[email protected] | |
with: | |
pattern: coverage-data-* | |
merge-multiple: true | |
- name: Combine coverage data and display human readable report | |
run: | | |
nox --force-color --session=coverage | |
- name: Create coverage report | |
run: | | |
nox --force-color --session=coverage -- xml | |
- name: Upload coverage report | |
uses: codecov/[email protected] | |
tests-success: | |
runs-on: ubuntu-latest | |
if: ${{ always() }} | |
needs: | |
- tests | |
- coverage | |
steps: | |
- name: Ensure tests succeeded | |
if: "${{ needs.tests.result != 'success' }}" | |
run: | | |
exit 1 | |
- name: Ensure coverage succeeded | |
if: "${{ needs.coverage.result != 'success' }}" | |
run: | | |
exit 1 |