Skip to content

Commit 2b02438

Browse files
committed
cache lint and docs install
1 parent 971d02e commit 2b02438

File tree

2 files changed

+21
-2
lines changed

2 files changed

+21
-2
lines changed

.github/workflows/ci.yml

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,14 @@ jobs:
2020
with:
2121
python-version: 3.9
2222

23+
- uses: actions/cache@v2
24+
id: cache
25+
with:
26+
path: ${{ env.pythonLocation }}
27+
key: lint-${{ runner.os }}-${{ env.pythonLocation }}-${{ hashFiles('tests/requirements-linting.txt') }}
28+
2329
- name: install
30+
if: steps.cache.outputs.cache-hit != 'true'
2431
run: |
2532
make install-linting
2633
pip freeze
@@ -45,9 +52,21 @@ jobs:
4552
- name: set up python
4653
uses: actions/setup-python@v3
4754
with:
48-
python-version: 3.8
55+
python-version: 3.9
56+
57+
- uses: actions/cache@v2
58+
id: cache
59+
with:
60+
path: ${{ env.pythonLocation }}
61+
key: >
62+
${{ runner.os }}
63+
${{ env.pythonLocation }}
64+
${{ hashFiles('setup.py') }}
65+
${{ hashFiles('requirements.txt') }}
66+
${{ hashFiles('docs/requirements.txt') }}
4967
5068
- name: install
69+
if: steps.cache.outputs.cache-hit != 'true'
5170
run: make install-docs
5271

5372
- name: build site

.github/workflows/upload-previews.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
steps:
1717
- uses: actions/setup-python@v3
1818
with:
19-
python-version: '3.8'
19+
python-version: '3.9'
2020

2121
- run: pip install smokeshow
2222

0 commit comments

Comments
 (0)