Skip to content

Commit 53ca1d2

Browse files
benjefferymergify[bot]
authored andcommitted
Use setup-python cache
1 parent e594a66 commit 53ca1d2

File tree

1 file changed

+4
-14
lines changed

1 file changed

+4
-14
lines changed

.github/workflows/docs.yml

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -28,37 +28,27 @@ jobs:
2828

2929
- uses: actions/checkout@v3
3030

31-
- uses: actions/setup-python@v4
32-
with:
33-
python-version: "3.10"
34-
3531
- name: Install apt deps
3632
if: env.APTGET
3733
run: sudo apt-get install -y ${{env.APTGET}}
3834

39-
- uses: actions/cache@v3
40-
id: venv-cache
35+
- uses: actions/setup-python@v4
4136
with:
42-
path: venv
43-
key: docs-venv-v4-${{ hashFiles(env.REQUIREMENTS) }}
37+
python-version: "3.10"
38+
cache: 'pip'
4439

45-
- name: Create venv and install deps (one by one to avoid conflict errors)
46-
if: steps.venv-cache.outputs.cache-hit != 'true'
40+
- name: Create venv and install deps
4741
run: |
48-
python -m venv venv
49-
. venv/bin/activate
5042
pip install --upgrade pip wheel
5143
pip install -r ${{env.REQUIREMENTS}}
5244
5345
- name: Build C module
5446
if: env.MAKE_TARGET
5547
run: |
56-
. venv/bin/activate
5748
make $MAKE_TARGET
5849
5950
- name: Build Docs
6051
run: |
61-
. venv/bin/activate
6252
make -C docs
6353
6454
- name: Trigger docs site rebuild

0 commit comments

Comments
 (0)