Skip to content

Fix docs workflow #1088

Fix docs workflow

Fix docs workflow #1088

name: QualityChecks
on:
push:
pull_request:
branches:
- main
jobs:
check-and-test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11"]
fail-fast: false
name: Python-${{ matrix.python-version }}
steps:
#----------------------------------------------
# check-out repo and set-up python
#----------------------------------------------
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v6
with:
version: "0.9.6"
#----------------------------------------------
# install
#----------------------------------------------
- name: Install dependencies
run: UV_PYTHON=python${{ matrix.python-version }} make sync
#----------------------------------------------
# test
#----------------------------------------------
- name: Run tests
run: UV_PYTHON=python${{ matrix.python-version }} make test
- name: Create badge
run: |
uv pip install genbadge[coverage]
uv run genbadge coverage -i coverage.xml -o coverage.svg
- name: Uploade coverage artifact
if: matrix.python-version == '3.11'
uses: actions/upload-artifact@v5
with:
name: coverage
path: |
coverage_html/**
coverage.svg
retention-days: 1
overwrite: true