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

on: [push, pull_request]

jobs:
  test_docs:
    runs-on: ubuntu-latest
    timeout-minutes: 5
    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