Skip to content

Commit d66cea8

Browse files
committed
Fix GA caching
1 parent c21cc60 commit d66cea8

File tree

1 file changed

+14
-10
lines changed

1 file changed

+14
-10
lines changed

.github/workflows/test.yaml

+14-10
Original file line numberDiff line numberDiff line change
@@ -37,16 +37,25 @@ jobs:
3737
with:
3838
python-version: "3.8"
3939

40+
- name: Checkout
41+
uses: actions/checkout@v2
42+
43+
- name: Install template app
44+
run: |
45+
git clone git://github.com/cesium-ml/baselayer_template_app
46+
cp -rf baselayer baselayer_template_app/
47+
4048
- uses: actions/cache@v2
4149
with:
4250
path: |
43-
~/.cache
44-
~/.local
4551
~/.npm
46-
key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }}
52+
key: ${{ runner.os }}-npm-${{ hashFiles('**/package.json') }}
4753

48-
- name: Checkout
49-
uses: actions/checkout@v2
54+
- uses: actions/cache@v2
55+
with:
56+
path: |
57+
~/.cache/pip
58+
key: ${{ runner.os }}-${{ hashFiles('**/requirements*.txt') }}
5059

5160
- name: Install system dependencies
5261
run: |
@@ -85,11 +94,6 @@ jobs:
8594
pip install --upgrade selenium
8695
python -c "import selenium; print(f'Selenium {selenium.__version__}')"
8796
88-
- name: Install template app
89-
run: |
90-
git clone git://github.com/cesium-ml/baselayer_template_app
91-
cp -rf baselayer baselayer_template_app/
92-
9397
- name: Write configuration & build DB
9498
run: |
9599
cd baselayer_template_app

0 commit comments

Comments
 (0)