Skip to content
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

[INFRA] Split the anat pipelines between freesurfer-based and others #996

Merged
Merged
Show file tree
Hide file tree
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
2 changes: 2 additions & 0 deletions .github/workflows/test_non_regression_fast.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ jobs:
--disable-warnings \
-n 4 \
-m "fast" \
--dist loadgroup \
./nonregression/

test-non-regression-fast-Linux:
Expand Down Expand Up @@ -78,4 +79,5 @@ jobs:
--disable-warnings \
-n 4 \
-m "fast" \
--dist loadgroup \
./nonregression/
41 changes: 35 additions & 6 deletions .github/workflows/test_pipelines_anat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ on:
permissions:
contents: read

env:
POETRY_VERSION: '1.6.1'
PYTHON_VERSION: '3.10'

jobs:
test-pipelines-anat-MacOS:
runs-on:
Expand All @@ -16,7 +20,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: snok/install-poetry@v1
- name: Run tests for anat pipelines
- name: Run tests for anat t1 linear pipelines
run: |
make env.conda
source ~/miniconda3/etc/profile.d/conda.sh
Expand All @@ -29,9 +33,18 @@ jobs:
--working_directory=/Volumes/data/working_dir_mac \
--input_data_directory=/Volumes/data_ci \
--basetemp=/Volumes/data/tmp \
--junitxml=./test-reports/non_regression_anat_mac.xml \
--junitxml=./test-reports/non_regression_anat_t1_linear_mac.xml \
--disable-warnings \
./nonregression/pipelines/anat/test_t1_linear.py
- name: Run tests for anat t1 volume pipelines
run: |
poetry run pytest --verbose \
--working_directory=/Volumes/data/working_dir_mac \
--input_data_directory=/Volumes/data_ci \
--basetemp=/Volumes/data/tmp \
--junitxml=./test-reports/non_regression_anat_t1_volume_mac.xml \
--disable-warnings \
./nonregression/pipelines/anat
./nonregression/pipelines/anat/test_t1_volume.py

test-pipelines-anat-Linux:
runs-on:
Expand All @@ -41,7 +54,14 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: snok/install-poetry@v1
- name: Run tests for anat pipelines
with:
version: ${{ env.POETRY_VERSION }}
virtualenvs-create: false
- uses: actions/setup-python@v4
with:
python-version: ${{ env.PYTHON_VERSION }}
cache: poetry
- name: Run tests for anat t1 linear pipelines
run: |
make env.conda
source /builds/miniconda/etc/profile.d/conda.sh
Expand All @@ -54,6 +74,15 @@ jobs:
--working_directory=/mnt/data/ci/working_dir_linux \
--input_data_directory=/mnt/data_ci \
--basetemp=/mnt/data/ci/tmp \
--junitxml=./test-reports/non_regression_anat_linux.xml \
--junitxml=./test-reports/non_regression_anat_t1_linear_linux.xml \
--disable-warnings \
./nonregression/pipelines/anat/test_t1_linear.py
- name: Run tests for anat t1 volume pipelines
run: |
poetry run pytest --verbose \
--working_directory=/mnt/data/ci/working_dir_linux \
--input_data_directory=/mnt/data_ci \
--basetemp=/mnt/data/ci/tmp \
--junitxml=./test-reports/non_regression_anat_t1_volume_linux.xml \
--disable-warnings \
./nonregression/pipelines/anat
./nonregression/pipelines/anat/test_t1_volume.py
70 changes: 70 additions & 0 deletions .github/workflows/test_pipelines_anat_freesurfer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
name: Freesurfer Anat Pipelines Tests

on:
schedule:
- cron: 0 20 * * 2 # every tuesday at 8pm

permissions:
contents: read

env:
POETRY_VERSION: '1.6.1'
PYTHON_VERSION: '3.10'

jobs:
test-pipelines-anat-freesurfer-MacOS:
runs-on:
- self-hosted
- macOS
timeout-minutes: 720
steps:
- uses: actions/checkout@v4
- uses: snok/install-poetry@v1
- name: Run tests for anat pipelines using freesurfer
run: |
make env.conda
source ~/miniconda3/etc/profile.d/conda.sh
conda activate "${{ github.workspace }}"/env
source "$(brew --prefix)/opt/modules/init/bash"
module load clinica.all
make install
cd test
poetry run pytest --verbose \
--working_directory=/Volumes/data/working_dir_mac \
--input_data_directory=/Volumes/data_ci \
--basetemp=/Volumes/data/tmp \
--junitxml=./test-reports/non_regression_anat_t1_freesurfer_mac.xml \
--disable-warnings \
./nonregression/pipelines/anat/test_t1_freesurfer.py

test-pipelines-anat-freesurfer-Linux:
runs-on:
- self-hosted
- Linux
timeout-minutes: 720
steps:
- uses: actions/checkout@v4
- uses: snok/install-poetry@v1
with:
version: ${{ env.POETRY_VERSION }}
virtualenvs-create: false
- uses: actions/setup-python@v4
with:
python-version: ${{ env.PYTHON_VERSION }}
cache: poetry
- name: Run tests for anat pipelines using freesurfer
run: |
make env.conda
source /builds/miniconda/etc/profile.d/conda.sh
conda activate "${{ github.workspace }}"/env
source /usr/local/Modules/init/profile.sh
module load clinica.all
make install
cd test
poetry run pytest --verbose \
--working_directory=/mnt/data/ci/working_dir_linux \
--input_data_directory=/mnt/data_ci \
--basetemp=/mnt/data/ci/tmp \
--junitxml=./test-reports/non_regression_anat_t1_freesurfer_linux.xml \
--disable-warnings \
./nonregression/pipelines/anat/test_t1_freesurfer.py