Skip to content

Commit

Permalink
Fix documentation workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jessicasyu committed Jun 27, 2023
1 parent 9f9ab04 commit dbc10a0
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,31 @@ jobs:
with:
python-version: 3.9

- name: Install poetry
uses: snok/install-poetry@v1
with:
virtualenvs-create: true
virtualenvs-in-project: true

- name: Load cached venv
id: cached-poetry-dependencies
uses: actions/cache@v3
with:
path: .venv
key: venv-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }}

- name: Install dependencies
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
run: |
poetry install --no-interaction --no-root
- name: Install library
run: |
python -m pip install --upgrade pip
pip install Sphinx sphinx-rtd-theme sphinx-mdinclude
poetry install --no-interaction
- name: Generate documentation with Sphinx
run: |
source .venv/bin/activate
make docs
touch docs/_build/html/.nojekyll
Expand Down

0 comments on commit dbc10a0

Please sign in to comment.