Skip to content

Fix tests for Sphinx 8.1, remove Python 3.9 support #387

Fix tests for Sphinx 8.1, remove Python 3.9 support

Fix tests for Sphinx 8.1, remove Python 3.9 support #387

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.9", "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 }}
cache: pip
- name: dependencies
run: |
pip install --upgrade pip wheel
pip install .[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