Skip to content

update infrastructure #92

update infrastructure

update infrastructure #92

Workflow file for this run

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.9
runs-on: ubuntu-latest
python-version: 3.9
toxenv: py39
- 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: py311-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.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install tox
run: |
python -m pip install --upgrade pip
pip install tox
- name: Run tox
run: tox -e build-docs