[pre-commit.ci] pre-commit autoupdate #163
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: Tests | |
on: | |
push: | |
branches: | |
- dev | |
pull_request: | |
branches: | |
- dev | |
jobs: | |
tests: | |
name: Tests (Python ${{matrix.python-version}} | ${{matrix.simulator}}) | |
runs-on: ${{matrix.os}} | |
env: | |
SIM: ${{matrix.simulator}} | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"] | |
simulator: [nvc] | |
os: [ubuntu-24.04] | |
nvc-version: ["1.16.2"] | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
# GitHub PR's create a merge commit, and Actions are run on that commit. | |
# Codecov's uploader needs the previous commit (tip of PR branch) to associate coverage correctly. | |
# A fetch depth of 2 provides enough information without fetching the entire history. | |
fetch-depth: 2 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: ${{matrix.python-version}} | |
allow-prereleases: true | |
- name: Set up NVC | |
uses: nickg/setup-nvc@v1 | |
with: | |
version: ${{matrix.nvc_version-version}} | |
- name: Install uv | |
uses: astral-sh/setup-uv@v5 | |
- name: Install Testing Dependencies | |
run: | | |
uv tool install nox | |
uv tool install coverage[toml] | |
- name: Run tests | |
run: | | |
nox -s tests -- -s | |
- name: Upload coverage reports to Codecov | |
uses: codecov/codecov-action@v5 | |
with: | |
files: "coverage.xml" | |
token: ${{ secrets.CODECOV_TOKEN }} | |
verbose: true | |
disable_search: true | |
fail_ci_if_error: true | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: ${{ !contains(github.ref, 'dev') }} |