Add option to support cpp:namespace directives #906
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: | |
cache-doxygen: | |
uses: ./.github/workflows/cache_doxygen.yml | |
build: | |
needs: cache-doxygen | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
doxygen-version: ['1.9.4', '1.9.7'] | |
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12'] | |
sphinx-version: | |
- '4.3.2' | |
- '4.5.0' | |
- '5.0.2' | |
- '5.1.1' | |
- '5.3.0' | |
- '6.1.3' | |
- '7.2.6' | |
# version 7.3 broke up the domain modules into packages, changing | |
# where some classes had to be imported from | |
- '7.3.0' | |
- git+https://github.com/sphinx-doc/sphinx.git@master | |
exclude: | |
# Sphinx version 7.2 and up isn't compatible with Python 3.8 | |
- python-version: '3.8' | |
sphinx-version: '7.2.6' | |
- python-version: '3.8' | |
sphinx-version: '7.3.0' | |
- python-version: '3.8' | |
sphinx-version: git+https://github.com/sphinx-doc/sphinx.git@master | |
steps: | |
- uses: actions/checkout@v2 | |
- name: set up python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
cache: 'pip' | |
cache-dependency-path: | | |
requirements/development.txt | |
requirements/production.txt | |
# the latest sphinxcontrib- packages don't work with Sphinx version 4 | |
- name: install sphinx from PyPI with compatible versions of sphinxcontrib- packages | |
if: ${{ ! contains(matrix.sphinx-version, 'git') && matrix.sphinx-version[0] < 5 }} | |
run: > | |
pip install -Iv | |
Sphinx==${{ matrix.sphinx-version }} | |
sphinxcontrib-applehelp==1.0.4 | |
sphinxcontrib-devhelp==1.0.2 | |
sphinxcontrib-htmlhelp==2.0.1 | |
sphinxcontrib-serializinghtml==1.1.5 | |
sphinxcontrib-qthelp==1.0.3 | |
- name: install sphinx from PyPI | |
if: ${{ ! contains(matrix.sphinx-version, 'git') && matrix.sphinx-version[0] >= 5 }} | |
run: | | |
pip install -Iv Sphinx==${{ matrix.sphinx-version }} | |
- name: install sphinx from git | |
if: contains(matrix.sphinx-version, 'git') | |
run: | | |
pip install ${{ matrix.sphinx-version }} | |
- uses: actions/cache/restore@v4 | |
id: cache-doxygen | |
with: | |
path: doxygen-bin-arc | |
fail-on-cache-miss: true | |
key: ${{ runner.os }}-doxygen-${{ matrix.doxygen-version }} | |
- name: install Doxygen | |
# at some point actions/cache/restore@4 started unpacking doxygen.tar.gz | |
# automatically and I don't know why -- Rouslan | |
run: | | |
cd doxygen-bin-arc | |
if test -d doxygen; then | |
cd doxygen | |
else | |
gunzip doxygen.tar.gz | |
tar xf doxygen.tar | |
cd doxygen-${{ matrix.doxygen-version }} | |
fi | |
sudo make install | |
- name: install dependencies and build extension module | |
run: | | |
pip install -r requirements/development.txt | |
pip install --editable . | |
- name: run the unit tests | |
run: make dev-test |