Skip to content

chore(ci): group dependabot updates monthly, drop CodeQL workflow (#338) #723

chore(ci): group dependabot updates monthly, drop CodeQL workflow (#338)

chore(ci): group dependabot updates monthly, drop CodeQL workflow (#338) #723

# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: Test with python versions
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
os: [ubuntu-latest, macos-latest]
steps:
- uses: actions/checkout@v4
- name: Install uv and set the python version
uses: astral-sh/setup-uv@v6
with:
python-version: ${{ matrix.python-version }}
enable-cache: true
- name: Install the project
run: uv sync --locked --all-extras --dev
- name: Test with pytest (Ubuntu)
if: startsWith(matrix.os, 'ubuntu')
run: |
xvfb-run -s "-screen 0 1024x768x24" uv run pytest --cov . --cov-report=xml --cov-report=html
- name: Test with pytest (macOS)
if: startsWith(matrix.os, 'macos')
env:
MPLBACKEND: Agg
run: |
uv run pytest --cov . --cov-report=xml --cov-report=html
- name: Upload coverage information
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.12'
uses: codecov/codecov-action@v5
with:
fail_ci_if_error: false
name: codecov-umbrella
files: ./coverage.xml
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true