Merge pull request #205 from s-goldman/master #127
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: | |
push: | |
branches: | |
- master | |
tags: | |
- '*' | |
pull_request: | |
jobs: | |
tox: | |
name: ${{ matrix.name }} | |
runs-on: ${{ matrix.runs-on }} | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- name: Python 3.10 | |
runs-on: ubuntu-latest | |
python-version: '3.10' | |
toxenv: py310 | |
- name: Python 3.11 | |
runs-on: ubuntu-latest | |
python-version: 3.11 | |
toxenv: py311 | |
- name: Python 3.12 | |
runs-on: ubuntu-latest | |
python-version: 3.12 | |
toxenv: py312 | |
- name: Code style checks | |
runs-on: ubuntu-latest | |
python-version: 3.11 | |
toxenv: style | |
- name: Python 3.11 with dev dependencies | |
runs-on: ubuntu-latest | |
python-version: 3.11 | |
toxenv: dev | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install tox | |
run: | | |
python -m pip install --upgrade pip | |
pip install tox | |
- name: Run tox | |
run: tox -e ${{ matrix.toxenv }} | |
# Kept in a separate job because it needs extra system dependencies | |
# that can't be installed by tox. | |
build-docs: | |
name: Build documentation and check warnings | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install system packages | |
run: | | |
sudo apt-get install graphviz texlive-latex-extra dvipng | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Set up Python 3.11 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.11 | |
- name: Install tox | |
run: | | |
python -m pip install --upgrade pip | |
pip install tox | |
- name: Run tox | |
run: tox -e build-docs |