Bump the actions group in /.github/workflows with 2 updates #145
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@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
with: | |
fetch-depth: 0 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0 | |
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@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
with: | |
fetch-depth: 0 | |
- name: Set up Python 3.11 | |
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0 | |
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 |