Merge pull request #101 from codevence/develop #257
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: Sphinx | |
on: | |
push: | |
jobs: | |
sphinx-build: | |
name: Sphinx Build | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
format: | |
- html | |
- latex | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.12 | |
cache: pip | |
cache-dependency-path: | | |
**/requirements*.txt | |
- name: Install fonts | |
run: | | |
sudo apt-get update --fix-missing | |
sudo apt-get install ghostscript fonts-freefont-otf | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r docs/requirements.txt | |
- name: Install ImageMagick | |
run: | | |
sudo apt install imagemagick | |
- name: Run Sphinx | |
run: | | |
cd docs | |
make SPHINXOPTS="-W --keep-going -n" ${{ matrix.format }} |