| 1 |
name: docs |
| 2 |
|
| 3 |
on: ["push", "pull_request"] |
| 4 |
|
| 5 |
jobs: |
| 6 |
docs: |
| 7 |
# We want to run on external PRs, but not on our own internal PRs as they'll be run |
| 8 |
# by the push to the branch. |
| 9 |
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository |
| 10 |
|
| 11 |
runs-on: ubuntu-latest |
| 12 |
steps: |
| 13 |
- name: Checkout |
| 14 |
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 |
| 15 |
|
| 16 |
- name: Setup Python |
| 17 |
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 |
| 18 |
with: |
| 19 |
python-version: '3.x' |
| 20 |
cache: "pip" |
| 21 |
cache-dependency-path: | |
| 22 |
requirements.txt |
| 23 |
docs/requirements.txt |
| 24 |
|
| 25 |
- name: Build |
| 26 |
run: | |
| 27 |
pip install -r requirements.txt |
| 28 |
make cython |
| 29 |
|
| 30 |
- name: Sphinx Documentation Generator |
| 31 |
run: | |
| 32 |
pip install -r docs/requirements.txt |
| 33 |
make docs |