Skip to content

PR Test

PR Test #5069

Workflow file for this run

name: PR Test
on:
pull_request:
branches:
- develop
- release**
merge_group:
branches:
- develop
- release**
push:
branches:
- develop
- release**
permissions:
# The id-token permission is required by Codecov to use OIDC
id-token: write
# This is what will cancel the workflow concurrency
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
defaults:
run:
shell: bash
jobs:
pr_test:
strategy:
fail-fast: false
matrix:
os: ["ubuntu-24.04", "windows-2022", "macos-15"]
python-version: ["3.10", "3.14"]
name: pr test (${{ matrix.os }}, Python ${{ matrix.python-version }})
runs-on: ${{ matrix.os }}
steps:
- name: Harden the runner (audit all outbound calls)
uses: step-security/harden-runner@df199fb7be9f65074067a9eb93f12bb4c5547cf2 # v2.13.3
with:
egress-policy: audit
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
with:
persist-credentials: false
- name: Installing Rust toolchain
uses: dtolnay/rust-toolchain@0b1efabc08b657293548b77fb76cc02d26091c7e
with:
toolchain: stable
- name: Install uv and set the python version
uses: astral-sh/setup-uv@ed21f2f24f8dd64503750218de024bcf64c7250a # v7.1.5
with:
enable-cache: false
python-version: ${{ matrix.python-version }}
version: "0.8.15"
- name: Installing dependencies
run: uv sync --locked --all-extras --dev
- name: Tests
run: uv run pytest --cov --cov-report=xml
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@5a1091511ad55cbe89839c7260b706298ca349f7 # v5.5.1
with:
flags: ${{ matrix.os }}_Python-${{ matrix.python-version }}
use_oidc: true