Skip to content

Commit

Permalink
Update documentation CI task to build local packages
Browse files Browse the repository at this point in the history
To remove hardcoded version number and use the imported
one, we should build local packages to get the up-to-date
value.
  • Loading branch information
dnnanuti committed Jan 18, 2024
1 parent 020d19a commit 0542f8c
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: documentation

on:
push:
branches: [ "main"]
branches: [ "main" ]

permissions:
contents: write
Expand All @@ -17,6 +17,14 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v5

- name: Install local packages to update versions
run: |
python -m pip install --upgrade pip
# Manually install CPU-only version of torch so we're not carrying around giant GPU drivers/kernels
python -m pip install torch --extra-index-url https://download.pytorch.org/whl/cpu
python -m pip install -e "s3torchconnectorclient"
python -m pip install -e "s3torchconnector"
- name: Install dependencies
run: |
pip install sphinx sphinx_rtd_theme sphinx-autoapi ghp-import
Expand Down

0 comments on commit 0542f8c

Please sign in to comment.