diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ed288bf48..01d630bf4 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -10,8 +10,8 @@ permissions: contents: read jobs: - test: - name: Run unit tests on ${{ matrix.os }} with Python ${{ matrix.python-version }} + test-intel: + name: Run unit tests on Intel ${{ matrix.os }} with Python ${{ matrix.python-version }} runs-on: ${{ matrix.os }} strategy: fail-fast: false @@ -27,3 +27,20 @@ jobs: cache: poetry - name: Run unit tests run: make test + + test-arm: + name: Run unit tests on ARM MacOS with Python ${{ matrix.python-version }} + runs-on: macos-14 + strategy: + fail-fast: false + matrix: + python-version: ['3.10'] + steps: + - uses: actions/checkout@v4 + - uses: snok/install-poetry@v1 + - uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + cache: poetry + - name: Run unit tests + run: make test diff --git a/.github/workflows/test_non_regression_fast.yml b/.github/workflows/test_non_regression_fast.yml index 971665c7a..c9e94e801 100644 --- a/.github/workflows/test_non_regression_fast.yml +++ b/.github/workflows/test_non_regression_fast.yml @@ -43,11 +43,11 @@ jobs: --basetemp=/Volumes/data/tmp \ --junitxml=./test-reports/non_regression_fast_mac.xml \ --disable-warnings \ - -n 4 \ - --dist loadgroup \ -m "fast" \ - --dist loadgroup \ ./nonregression/ + - name: Clean + run: | + rm -rf /Volumes/data/tmp test-non-regression-fast-Linux: runs-on: @@ -78,8 +78,8 @@ jobs: --basetemp=/mnt/data/ci/tmp \ --junitxml=./test-reports/non_regression_fast_linux.xml \ --disable-warnings \ - -n 4 \ - --dist loadgroup \ -m "fast" \ - --dist loadgroup \ ./nonregression/ + - name: Clean + run: | + rm -rf /mnt/data/ci/tmp diff --git a/clinica/iotools/utils/data_handling.py b/clinica/iotools/utils/data_handling.py index bd18b8b39..2d5845a47 100644 --- a/clinica/iotools/utils/data_handling.py +++ b/clinica/iotools/utils/data_handling.py @@ -621,7 +621,7 @@ def compute_missing_mods( out_dir = Path(out_dir) bids_dir = Path(bids_dir) - os.makedirs(out_dir, exist_ok=True) + out_dir.mkdir(parents=True, exist_ok=True) # Find all the modalities and sessions available for the input dataset mods_and_sess = find_mods_and_sess(bids_dir)