Skip to content

Commit 688df7d

Browse files
committed
CI: Bump cimg, simplify pyenv, reset cache
1 parent 201d288 commit 688df7d

File tree

1 file changed

+11
-15
lines changed

1 file changed

+11
-15
lines changed

.circleci/config.yml

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ _machine_defaults: &machine_defaults
44
TZ: "/usr/share/zoneinfo/America/Los_Angeles"
55
SCRATCH: "/scratch"
66
machine:
7-
image: ubuntu-2204:2023.04.2
7+
image: default
88
docker_layer_caching: true
99
working_directory: /tmp/src/smriprep
1010
resource_class: large
1111

1212
_python_defaults: &python_defaults
1313
docker:
14-
- image: cimg/python:3.10.9
14+
- image: cimg/python:3.12.2
1515
auth:
1616
username: $DOCKER_USER
1717
password: $DOCKER_PAT
@@ -115,8 +115,7 @@ jobs:
115115
name: Build Docker image
116116
no_output_timeout: 60m
117117
command: |
118-
export PY3=$( pyenv versions | awk '/^\* 3/ { print $2 }' )
119-
pyenv local $PY3
118+
pyenv local 3
120119
pip install hatch
121120
# Get version, update files.
122121
THISVERSION=$( hatch version )
@@ -139,8 +138,7 @@ jobs:
139138
- run:
140139
name: Check Docker image
141140
command: |
142-
export PY3=$( pyenv versions | awk '/^\* 3/ { print $2 }' )
143-
pyenv local $PY3
141+
pyenv local 3
144142
# Get version, update files.
145143
THISVERSION=$( hatch version )
146144
BUILT_VERSION=$( docker run --rm nipreps/smriprep:latest --version )
@@ -309,8 +307,7 @@ jobs:
309307
- run:
310308
name: Test smriprep-wrapper (Python 2)
311309
command: |
312-
export PY2=$( pyenv versions | awk '/^\* 2/ { print $2 }' )
313-
pyenv local $PY2
310+
pyenv local 2.7
314311
echo -n "Python version: "
315312
python --version
316313
pip install --upgrade "pip<21"
@@ -322,8 +319,7 @@ jobs:
322319
- run:
323320
name: Test smriprep-wrapper (Python 3)
324321
command: |
325-
export PY3=$( pyenv versions | awk '/^\* 3/ { print $2 }' )
326-
pyenv local $PY3
322+
pyenv local 3
327323
echo -n "Python version: "
328324
python --version
329325
pip install --upgrade pip setuptools
@@ -440,10 +436,10 @@ jobs:
440436
- run: *pull_from_registry
441437
- restore_cache:
442438
keys:
443-
- ds005-anat-v0-{{ .Branch }}-{{ epoch }}
444-
- ds005-anat-v0-{{ .Branch }}
445-
- ds005-anat-v0-master
446-
- ds005-anat-v0-next
439+
- ds005-anat-v1-{{ .Branch }}-{{ epoch }}
440+
- ds005-anat-v1-{{ .Branch }}
441+
- ds005-anat-v1-master
442+
- ds005-anat-v1-next
447443
- restore_cache:
448444
keys:
449445
- testdata-v2-{{ .Branch }}-{{ epoch }}
@@ -500,7 +496,7 @@ jobs:
500496
rm -rf /tmp/ds005/work/reportlets
501497
rm -rf /tmp/ds005/work/smriprep_wf/fsdir_run_*/
502498
- save_cache:
503-
key: ds005-anat-v0-{{ .Branch }}-{{ epoch }}
499+
key: ds005-anat-v1-{{ .Branch }}-{{ epoch }}
504500
paths:
505501
- /tmp/ds005/work
506502

0 commit comments

Comments
 (0)