Skip to content

⬆ [pre-commit.ci] pre-commit autoupdate #55

⬆ [pre-commit.ci] pre-commit autoupdate

⬆ [pre-commit.ci] pre-commit autoupdate #55

Workflow file for this run

name: CI
on:
workflow_dispatch:
push:
branches:
- main
# - '*.x' for latest “.x” branch e.g, (0.1.x)
paths-ignore:
- "**.md"
pull_request:
branches:
- main
# - '*.x' for latest “.x” branch e.g, (0.1.x)
paths-ignore:
- "**.md"
release:
types: [published]
jobs:
Testing:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
os: [ubuntu-latest, macOS-latest, windows-latest]
steps:
- name: Checkout repo
uses: actions/checkout@v5
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
python-version: '${{ inputs.python-version }}'
enable-cache: true
- name: Display Python version
run: python -c "import sys; print(sys.version)"
- name: Install dependencies
run: uv sync
- name: Run tests with coverage
run: uv run pytest -svv --cov=./ --cov-report=xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.13'
with:
name: sync with uv # optional
fail_ci_if_error: true # optional (default = false)
verbose: true # optional (default = false)
token: ${{ secrets.CODECOV_TOKEN }}