Update GH Action to current release #923
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: unit tests | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: | |
- '3.8' | |
- '3.9' | |
- '3.10' | |
- '3.11' | |
- '3.12' | |
sphinx-version: | |
- '5.0.2' | |
- '5.1.1' | |
- '5.2.3' | |
- '5.3.0' | |
- '6.1.3' | |
- git+https://github.com/sphinx-doc/sphinx.git@master | |
steps: | |
- uses: actions/checkout@v4 | |
- name: set up python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
cache: 'pip' | |
- name: install dependencies | |
run: | | |
pip install ".[test]" | |
- name: install sphinx from PyPI or from git | |
run: | | |
if echo "${{ matrix.sphinx-version }}"|grep -q git; then | |
pip install ${{ matrix.sphinx-version }} | |
else | |
pip install -Iv Sphinx==${{ matrix.sphinx-version }} | |
fi | |
- name: run the unit tests | |
run: make dev-test |