Skip to content

[pre-commit.ci] pre-commit autoupdate #394

[pre-commit.ci] pre-commit autoupdate

[pre-commit.ci] pre-commit autoupdate #394

Workflow file for this run

# https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: Python tests
on:
push:
branches: [main]
pull_request:
branches: ["*"]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
PIP_ROOT_USER_ACTION: ignore
COLUMNS: "200"
FORCE_COLOR: "1"
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
filter: blob:none
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- uses: hynek/setup-cached-uv@v2
with:
cache-dependency-path: pyproject.toml
- name: dependencies
run: uv pip install --system .[test,typehints,myst] coverage-rich 'anyconfig[toml] >=0.14'
- name: tests
run: coverage run -m pytest --verbose --color=yes
- name: show coverage
run: coverage-rich report
- name: upload coverage
uses: codecov/codecov-action@v4
with:
fail_ci_if_error: true
token: c66a2830-d3c7-4ae7-a230-21aef89dcf65