Skip to content

Merge pull request #163 from crdbrd/dependabot/pip/linters-1df3371db3 #157

Merge pull request #163 from crdbrd/dependabot/pip/linters-1df3371db3

Merge pull request #163 from crdbrd/dependabot/pip/linters-1df3371db3 #157

Workflow file for this run

name: CI
on:
pull_request:
push:
branches:
- main
permissions:
contents: read
jobs:
build:
name: Build
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v6
with:
persist-credentials: false
- uses: hynek/build-and-inspect-python-package@d44ca7d91762de7a7d5436ddae667c6da6d1c3df # v2
tests:
strategy:
fail-fast: false
matrix:
include:
- name: "Docs"
python: "3.14"
tox: docs
- name: "mypy"
python: "3.14"
tox: mypy
- name: "pyright"
python: "3.14"
tox: pyright
- name: "pytest (3.10)"
python: "3.10"
tox: "3.10"
- name: "pytest (3.11)"
python: "3.11"
tox: "3.11"
- name: "pytest (3.12)"
python: "3.12"
tox: "3.12"
- name: "pytest (3.13)"
python: "3.13"
tox: "3.13"
- name: "pytest (3.14)"
python: "3.14"
tox: "3.14"
coverage: true
- name: "ruff format"
python: "3.14"
tox: ruff-format
- name: "ruff lint"
python: "3.14"
tox: ruff-lint
- name: "ty"
python: "3.14"
tox: ty
- name: "zizmor"
python: "3.14"
tox: zizmor
name: ${{ matrix.name }}
runs-on: ubuntu-24.04
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v6
with:
persist-credentials: false
- uses: astral-sh/setup-uv@fac544c07dec837d0ccb6301d7b5580bf5edae39 # v8.2.0
with:
python-version: ${{ matrix.python }}
- run: uv tool install tox --with tox-uv
- run: tox -e ${{ matrix.tox }}
if: ${{ ! matrix.coverage }}
- run: tox -e ${{ matrix.tox }} -- --cov-report=xml
if: ${{ matrix.coverage }}
- uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v6
if: ${{ matrix.coverage }}
with:
use_oidc: true