Skip to content

Commit

Permalink
🔧 use poetry and caching in documentation workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
roshan committed Oct 24, 2024
1 parent a20ea9b commit 352bb1c
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,17 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: "3.10"
- run: |
pip install -r dev-requirements.txt
- name: Install poetry
uses: abatilo/actions-poetry@v2
- name: Define a cache for the virtual environment based on the dependencies lock file
uses: actions/cache@v3
with:
path: ./.venv
key: venv-${{ hashFiles('poetry.lock') }}
- name: Install the package without dependencies
run: poetry install --no-deps
- name: Install documentation dependencies
run: poetry install --only docs
- run: |
cd doc
make html
Expand Down

0 comments on commit 352bb1c

Please sign in to comment.