Skip to content

Merge pull request #9 from MattTheCuber/cython #86

Merge pull request #9 from MattTheCuber/cython

Merge pull request #9 from MattTheCuber/cython #86

Workflow file for this run

name: Tests
on:
push:
branches: [master]
pull_request:
branches: [master]
permissions:
contents: write
pull-requests: write
jobs:
pytest:
name: Pytest ${{ matrix.config.name }}
runs-on: ${{ matrix.config.os }}
strategy:
fail-fast: false
matrix:
python-version: ["3.11", "3.12", "3.13"]
config:
- { name: "Linux", os: ubuntu-latest }
- { name: "MacOSX", os: macos-latest }
- { name: "Windows", os: windows-latest }
steps:
- name: Checkout
uses: actions/checkout@v6
with:
submodules: true
- name: Set up Python ${{ matrix.python-version }}
uses: astral-sh/setup-uv@v7
with:
python-version: ${{ matrix.python-version }}
- name: Install Dependencies
run: uv sync --extra utils --extra dev
- name: Run Tests
run: uv run pytest --slow --cov=. --cov-report=xml:coverage.xml --cov-branch
- name: Pytest Coverage Comment
uses: MishaKav/pytest-coverage-comment@v1.2.0
with:
pytest-xml-coverage-path: ./coverage.xml
junitxml-path: ./pytest.xml
# unique-id-for-comment: ${{ matrix.python-version }}-${{ matrix.config.os }}
title: Coverage for Python ${{ matrix.python-version }} on ${{ matrix.config.os }}