Looks like we can cache pip deps directly with actions/setup-python
This commit is contained in:
parent
ee1f80d5f5
commit
966caddecc
8
.github/workflows/docs.yml
vendored
8
.github/workflows/docs.yml
vendored
@ -47,16 +47,10 @@ jobs:
|
|||||||
- uses: actions/setup-python@v5
|
- uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: 3.x
|
python-version: 3.x
|
||||||
|
cache: 'pip'
|
||||||
|
|
||||||
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
|
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
|
||||||
|
|
||||||
- uses: actions/cache@v4
|
|
||||||
with:
|
|
||||||
key: mkdocs-material-${{ env.cache_id }}
|
|
||||||
path: .cache
|
|
||||||
restore-keys: |
|
|
||||||
mkdocs-material-
|
|
||||||
|
|
||||||
- run: pip install -r requirements.txt
|
- run: pip install -r requirements.txt
|
||||||
|
|
||||||
- name: Build Docs and Capture Warnings
|
- name: Build Docs and Capture Warnings
|
||||||
|
Loading…
x
Reference in New Issue
Block a user