Skip to content

CI: Move to new circle machine tags #3248

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 7 additions & 23 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ _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

_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
Expand Down Expand Up @@ -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/

Expand Down Expand Up @@ -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 )
Expand Down Expand Up @@ -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 )
Expand All @@ -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 )
Expand Down Expand Up @@ -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/
Expand All @@ -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"
Expand Down