This repository has been archived by the owner on Jan 12, 2024. It is now read-only.
[pre-commit.ci] pre-commit suggestions #312
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: Build Docs | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
max-parallel: 4 | |
matrix: | |
os: [ubuntu-latest] | |
python-version: [3.9] | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v1 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Get pip cache dir | |
if: runner.os != 'Windows' | |
id: pip-cache | |
run: echo "dir=$(pip cache dir)" >> $GITHUB_OUTPUT | |
- name: pip cache | |
uses: actions/cache@v3 | |
if: runner.os != 'Windows' | |
with: | |
path: ${{ steps.pip-cache.outputs.dir }} | |
key: ${{ runner.os }}-pip-py${{ matrix.python-version }}-${{ hashFiles('docs/requirements.txt') }} | |
restore-keys: | | |
${{ runner.os }}-pip-py${{ matrix.python-version }}- | |
- name: Install dependencies | |
run: | | |
sudo apt-get update && sudo apt-get install pandoc | |
python -m pip install --upgrade pip | |
pip install -U pip wheel | |
pip install -r docs/requirements.txt | |
- name: Build Docs | |
run: | | |
cd docs | |
bash build_docs.sh |