From b9995dd96ebbc5d6f70d14344d70451de35a174d Mon Sep 17 00:00:00 2001 From: mathiasg Date: Mon, 4 Mar 2024 11:26:54 -0500 Subject: [PATCH 1/2] CI: Move to new circle machine tags --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index a34e66eac..f6b8c1fba 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -4,7 +4,7 @@ _machine_defaults: &machine_defaults TZ: "/usr/share/zoneinfo/America/Los_Angeles" SCRATCH: "/scratch" machine: - image: ubuntu-2204:2023.04.2 + image: default docker_layer_caching: true working_directory: /tmp/src/fmriprep resource_class: large From 1ad7e3f3d2334fcde743e89ee901a57c2f39cf73 Mon Sep 17 00:00:00 2001 From: mathiasg Date: Mon, 4 Mar 2024 12:28:48 -0500 Subject: [PATCH 2/2] CI: Simplify pyenv usage --- .circleci/config.yml | 28 ++++++---------------------- 1 file changed, 6 insertions(+), 22 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index f6b8c1fba..5e6728259 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -11,7 +11,7 @@ _machine_defaults: &machine_defaults _python_defaults: &python_defaults docker: - - image: cimg/python:3.10.9 + - image: cimg/python:3.12 working_directory: /tmp/src/fmriprep _docker_auth: &docker_auth @@ -80,9 +80,7 @@ _check_skip_job: &check_skip_job _setup_fmriprep_docker: &setup_fmriprep_docker name: Install fMRIPrep's docker wrapper command: | - export PY3=$(pyenv versions | grep '3\.' | - sed -e 's/.* 3\./3./' -e 's/ .*//') - pyenv local $PY3 + pyenv local 3 pip install --upgrade pip pip install --upgrade /tmp/src/fmriprep/wrapper/ @@ -132,9 +130,7 @@ jobs: name: Build Docker image no_output_timeout: 60m command: | - export PY3=$(pyenv versions | grep '3\.' | - sed -e 's/.* 3\./3./' -e 's/ .*//') - pyenv local $PY3 + pyenv local 3 pip install hatch # Get version, update files THISVERSION=$( hatch version ) @@ -174,9 +170,7 @@ jobs: name: Build Docker image no_output_timeout: 60m command: | - export PY3=$(pyenv versions | grep '3\.' | - sed -e 's/.* 3\./3./' -e 's/ .*//') - pyenv local $PY3 + pyenv local 3 pip install hatch # Get version, update files. THISVERSION=$( hatch version ) @@ -199,9 +193,6 @@ jobs: - run: name: Check Docker image command: | - export PY3=$(pyenv versions | grep '3\.' | - sed -e 's/.* 3\./3./' -e 's/ .*//') - pyenv local $PY3 # Get version, update files. THISVERSION=$( hatch version ) BUILT_VERSION=$( docker run --rm nipreps/fmriprep:latest --version ) @@ -384,17 +375,12 @@ jobs: - run: name: Build fmriprep-docker wheel command: | - export PY3=$(pyenv versions | grep '3\.' | - sed -e 's/.* 3\./3./' -e 's/ .*//') - pyenv local $PY3 + pyenv local 3 pip install --upgrade pip build python -m build wrapper/ - run: name: Install and test fmriprep-docker (Python 3) command: | - export PY3=$(pyenv versions | grep '3\.' | - sed -e 's/.* 3\./3./' -e 's/ .*//') - pyenv local $PY3 echo -n "Python version: " python --version pip install --upgrade wrapper/ @@ -405,9 +391,7 @@ jobs: - run: name: Install and test fmriprep-docker (Python 2) command: | - export PY2=$(pyenv versions | grep '2\.' | - sed -e 's/.* 2\./2./' -e 's/ .*//') - pyenv local $PY2 + pyenv local 2.7 echo -n "Python version: " python --version pip install --upgrade "pip<21"