name: build docs

on: [push, pull_request]

jobs:
  build-docs:

    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v2
      - name: Set up Python 3.8
        uses: actions/setup-python@v2
        with:
          python-version: 3.8
      - name: Install dependencies
        run: |
          pip install --upgrade -r docs/requirements.txt
          python setup.py develop
      - name: Build docs
        run: |
          cd docs
          make html

name: build docs

on: [push, pull_request]

jobs:
  build-docs:

    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v2
      - name: Set up Python 3.10
        uses: actions/setup-python@v2
        with:
          python-version: '3.10'
      - name: Install dependencies
        run: |
          pip install --upgrade -r docs/requirements.txt
          python setup.py develop
      - name: Build docs
        run: |
          cd docs
          make html

Use current stable Python version for docs too
Use current stable Python version for docs too
