Skip to content

Commit

Permalink
workflow: Update actions used
Browse files Browse the repository at this point in the history
setup-python now support pip caching, so rmeove actions/cache
  • Loading branch information
rffontenelle authored and TingPing committed Oct 18, 2022
1 parent 23fda0b commit 26fa044
Showing 1 changed file with 7 additions and 12 deletions.
19 changes: 7 additions & 12 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,26 +12,21 @@ jobs:
runs-on: ubuntu-latest
env:
SPHINXOPTS: --color -q -E --keep-going -W

steps:
- uses: actions/cache@v1
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-

- uses: actions/checkout@v2
- uses: actions/setup-python@v1
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: 3.7
python-version: '3.10'
cache: 'pip'
cache-dependency-path: 'requirements.txt'
- name: Install dependencies
run: |
python3 -m pip install -U pip
pip install -U -r requirements.txt
- run: make -C docs/ html SPHINXOPTS="${SPHINXOPTS}"
- name: Upload docs as artifacts
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: translated-docs
path: docs/_build/**/html

0 comments on commit 26fa044

Please sign in to comment.