summaryrefslogtreecommitdiffstats
path: root/.github/workflows/test-docs.yml
blob: 070ce7af3eb644c3a7cdf712367b64a39c2c305a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
name: Test Documentation Build

on: [push, pull_request]

jobs:
  test_docs:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        python-version: ["3.10"]
    steps:
      - uses: actions/checkout@v3
      - name: Set up Python ${{ matrix.python-version }}
        uses: actions/setup-python@v4
        with:
          python-version: ${{ matrix.python-version }}
          cache: pip
      - name: Install dependencies for docs
        run: |
          python -m pip install -r docs/requirements.txt
      - name: Build documentation
        run: |
          cd docs && make clean && make html