Skip to content

Commit

Permalink
chore: isolate dependencies for building documentation (#107)
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Horton <[email protected]>
  • Loading branch information
madpah authored Dec 21, 2021
1 parent 6553dbf commit f2403f6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 12 deletions.
14 changes: 2 additions & 12 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,21 +21,11 @@ jobs:
with:
python-version: 3.9
architecture: 'x64'
- name: Install poetry
# see https://github.com/marketplace/actions/setup-poetry
uses: Gr1N/setup-poetry@v7
with:
poetry-version: 1.1.11
- uses: actions/cache@v2
with:
path: ~/.cache/pypoetry/virtualenvs
key: ${{ runner.os }}-poetry-${{ hashFiles('poetry.lock') }}
- name: Install dependencies
run: poetry install

run: pip install -r doc/requirements.txt
- name: Build documentation
run: |
poetry run pdoc --template-dir doc/templates --html cyclonedx
pdoc --template-dir doc/templates --html cyclonedx
- name: Deploy documentation
uses: JamesIves/[email protected]
with:
Expand Down
8 changes: 8 additions & 0 deletions doc/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
importlib-metadata==4.10.0
Mako==1.1.6
Markdown==3.3.6
MarkupSafe==2.0.1
pdoc3==0.10.0
zipp==3.6.0
packageurl-python>=0.9
toml>=0.10.0

0 comments on commit f2403f6

Please sign in to comment.