Skip to content

Commit 0ea4a64

Browse files
committed
fix: clean up environment cache
1 parent 7cef99c commit 0ea4a64

File tree

1 file changed

+7
-13
lines changed

1 file changed

+7
-13
lines changed

.circleci/config.yml

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ jobs:
1212
- checkout
1313
- restore_cache:
1414
keys:
15-
- env-v3-{{ .Branch }}-
16-
- env-v3-master-
17-
- env-v3-
15+
- env-v5-{{ .Branch }}-
16+
- env-v5-master-
17+
- env-v5-
1818
- run:
1919
name: Setup git-annex
2020
command: |
@@ -29,17 +29,14 @@ jobs:
2929
- run:
3030
name: Setup DataLad
3131
command: |
32-
export PY3=$(pyenv versions | grep '3\.' |
33-
sed -e 's/.* 3\./3./' -e 's/ .*//')
34-
pyenv local $PY3
35-
python -m pip install --no-cache-dir -U pip "setuptools >= 45.0" "setuptools_scm[toml] >= 3.4"
36-
python -m pip install --no-cache-dir -U datalad datalad-osf
32+
python3 -m pip install --no-cache-dir -U pip "setuptools >= 45.0" "setuptools_scm[toml] >= 3.4"
33+
python3 -m pip install --no-cache-dir -U datalad datalad-osf
3734
3835
- save_cache:
39-
key: env-v3-{{ .Branch }}-{{ .BuildNum }}
36+
key: env-v5-{{ .Branch }}-{{ .BuildNum }}
4037
paths:
4138
- /opt/circleci/git-annex.linux
42-
- /opt/circleci/.pyenv/versions/3.9.4
39+
- /opt/circleci/
4340

4441
- restore_cache:
4542
keys:
@@ -49,9 +46,6 @@ jobs:
4946
- run:
5047
name: Install test data from GIN
5148
command: |
52-
export PY3=$(pyenv versions | grep '3\.' |
53-
sed -e 's/.* 3\./3./' -e 's/ .*//')
54-
pyenv local $PY3
5549
export PATH=/opt/circleci/git-annex.linux:$PATH
5650
mkdir -p /tmp/data
5751
cd /tmp/data

0 commit comments

Comments
 (0)