Fix guide github action #507
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Docs | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/cache@v1 | |
with: | |
path: ~/.cache/pip | |
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }} | |
restore-keys: | | |
${{ runner.os }}-pip- | |
- name: Set up Python 3.8 | |
uses: actions/setup-python@v1 | |
with: | |
python-version: 3.9 | |
- name: Install package | |
run: | | |
pip install -e . | |
- name: Install requirements.txt | |
run: | | |
pip install -r requirements.txt | |
- name: Install docs/requirements.txt | |
run: | | |
python -m pip install --upgrade pip setuptools | |
pip install -r docs/requirements.txt | |
- name: sphinx | |
run: | | |
cd docs && make html |