Skip to content

Update github/codeql-action digest to 2892aa5 #2004

Update github/codeql-action digest to 2892aa5

Update github/codeql-action digest to 2892aa5 #2004

Workflow file for this run

name: Unit tests
on:
push:
workflow_dispatch:
jobs:
container_job:
name: Unit tests
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.12", "3.13", "3.14"]
fail-fast: true
container: ubuntu:latest@sha256:513c074113a871b51a8d16ab445c88779d6452d937a164fb5cc479f32668a41d
steps:
- name: Install git so the checkout is a git clone
run: |
apt update
apt install --no-install-recommends --yes ca-certificates git
- name: Check out repository code
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
with:
fetch-depth: 0
- name: Install uv and set the python version
uses: astral-sh/setup-uv@20cfd1bf945f4377ade1205e4dbc17946fc9a30d # v10.0.1
with:
version: "0.12.10"
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
apt update
apt install --no-install-recommends --yes bash curl git gpg ca-certificates # needed by codecov below
uv sync --link-mode=copy --dev # editable install so coverage can be generated
- name: Run Unit tests
run: uv run pytest --cov-report term-missing --cov-report=xml --cov=src tests
- name: "Upload coverage to Codecov"
uses: codecov/codecov-action@303a32d7a59b442fa8d48b6a1cc6825c09c847a5 # v7
with:
fail_ci_if_error: true
files: ./coverage.xml
verbose: true
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}