Skip to content

⬆️ Update coverage requirement from <7.11,>=7.2.7 to >=7.14.3,<7.15 #77

⬆️ Update coverage requirement from <7.11,>=7.2.7 to >=7.14.3,<7.15

⬆️ Update coverage requirement from <7.11,>=7.2.7 to >=7.14.3,<7.15 #77

Workflow file for this run

name: Tests
on:
push:
branches:
- main
- master
pull_request:
jobs:
tests:
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
steps:
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
allow-prereleases: true
- name: Install dependencies
run: pip install nox
- name: Run tests
run: nox -s test-${{ matrix.python-version }}
- name: "Upload artifact"
uses: "actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f"
with:
name: coverage-data-${{ matrix.python-version }}
path: ".coverage.*"
include-hidden-files: true
if-no-files-found: error
coverage:
if: always()
runs-on: "ubuntu-latest"
needs: tests
steps:
- name: "Checkout repository"
uses: "actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd"
- name: "Setup Python"
uses: "actions/setup-python@2e3e4b15a884dc73a63f962bff250a855150a234"
with:
python-version: "3.x"
- name: "Install coverage"
run: "python -m pip install --upgrade coverage"
- name: "Download artifact"
uses: actions/download-artifact@70fc10c6e5e1ce46ad2ea6f2b72d43f7d47b13c3 # v8.0.0
with:
pattern: coverage-data*
merge-multiple: true
- name: "Combine & check coverage"
run: |
python -m coverage combine
python -m coverage html --skip-covered --skip-empty
python -m coverage report --ignore-errors --show-missing --fail-under=77
- name: "Upload report"
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f
with:
name: coverage-report
path: htmlcov