name: test creation of the documentation
on: [push, pull_request]

jobs:
  test_documentation:
      runs-on: ubuntu-latest
      steps:
      - name: Checkout code
        uses: actions/checkout@v2
      - name: Set up Python 3.8
        uses: actions/setup-python@v1
        with:
          python-version: 3.8
      - name: install sphinx
        run: pip install sphinx
      - name: Build documentation
        run: |
          cd docs
          make
