Skip to content

Commit

Permalink
Update docs workflow. (#143)
Browse files Browse the repository at this point in the history
  • Loading branch information
smithdc1 authored Oct 22, 2023
1 parent 01bfe0a commit 1dfc341
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 18 deletions.
24 changes: 7 additions & 17 deletions .github/workflows/build_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,32 +10,22 @@ jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Setup Python
uses: actions/setup-python@v3
uses: actions/setup-python@v4
with:
python-version: '3.8'
python-version: '3.12'
cache: pip
cache-dependency-path: requirements.txt

- name: Upgrade pip
run: |
# install pip=>20.1 to use "pip cache dir"
python3 -m pip install --upgrade pip
- name: Get pip cache dir
id: pip-cache
run: echo "::set-output name=dir::$(pip cache dir)"

- name: Cache dependencies
uses: actions/cache@v2
with:
path: ${{ steps.pip-cache.outputs.dir }}
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
python -m pip install --upgrade pip
- name: Install dependencies
run: python3 -m pip install -r ./requirements.txt
run: python -m pip install -r ./requirements.txt

- run: |
cd docs
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ pre-commit

# docs
sphinx
sphinx-rtd-theme==0.5.1 #latest is 0.5.2 but requires docutils < 0.16, 1.0.0 is coming https://sphinx-rtd-theme.readthedocs.io/en/latest/changelog.html#v0-5-2
sphinx-rtd-theme

0 comments on commit 1dfc341

Please sign in to comment.