CI: update versions #169
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
pull_request: | |
push: | |
branches: [ main ] | |
tags: '*' | |
workflow_dispatch: | |
schedule: | |
# Weekly cron | |
- cron: '0 8 * * 1' | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
tests: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- name: Code style checks | |
os: ubuntu-latest | |
python-version: 3.x | |
toxenv: codestyle | |
# Linux - test different Sphinx versions | |
- os: ubuntu-latest | |
python-version: 3.8 | |
toxenv: py38-test-sphinx_oldest | |
- os: ubuntu-latest | |
python-version: 3.8 | |
toxenv: py38-test-sphinx53 | |
- os: ubuntu-latest | |
python-version: 3.9 | |
toxenv: py39-test-sphinx62 | |
- os: ubuntu-latest | |
python-version: 3.9 | |
toxenv: py39-test-sphinx70 | |
- os: ubuntu-latest | |
python-version: '3.10' | |
toxenv: py310-test-sphinx71 | |
- os: ubuntu-latest | |
python-version: '3.11' | |
toxenv: py311-test-sphinx72-cov-clocale | |
- os: ubuntu-latest | |
python-version: '3.12' | |
toxenv: py312-test-sphinxdev | |
# MacOS X - just the stable and dev | |
- os: macos-latest | |
python-version: '3.10' | |
toxenv: py310-test-sphinx72-clocale | |
- os: macos-latest | |
python-version: '3.11' | |
toxenv: py311-test-sphinxdev | |
# Windows - just the oldest, stable, and dev | |
- os: windows-latest | |
python-version: 3.8 | |
toxenv: py38-test-sphinx40 | |
- os: windows-latest | |
python-version: '3.10' | |
toxenv: py310-test-sphinx72 | |
- os: windows-latest | |
python-version: '3.11' | |
toxenv: py311-test-sphinxdev | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install graphviz on Linux | |
if: startsWith(matrix.os, 'ubuntu') | |
run: | | |
sudo apt-get update | |
sudo apt-get install graphviz | |
- name: Install graphviz on OSX | |
if: startsWith(matrix.os, 'macos') | |
run: | | |
brew update | |
brew install graphviz | |
- name: Install graphviz on Windows | |
if: startsWith(matrix.os, 'windows') | |
run: choco install graphviz | |
- name: Install tox | |
run: python -m pip install tox | |
- name: Run tox | |
run: tox ${{ matrix.toxargs }} -v -e ${{ matrix.toxenv }} | |
- name: Upload coverage to codecov | |
if: ${{ contains(matrix.toxenv,'-cov') }} | |
uses: codecov/codecov-action@v3 | |
with: | |
file: ./coverage.xml |