From 6640ca367c85fe4951f8e4b90643370832de1dc5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Boris=20Cl=C3=A9net?= Date: Tue, 29 Aug 2023 16:41:02 +0200 Subject: [PATCH] [CI] from now on, unit_test workflow must run on self hosted runner --- .github/workflows/unit_tests.yml | 15 +++------------ narps_open/pipelines/team_T54A.py | 8 ++++---- 2 files changed, 7 insertions(+), 16 deletions(-) diff --git a/.github/workflows/unit_tests.yml b/.github/workflows/unit_tests.yml index 4859e55d..e0c237b4 100644 --- a/.github/workflows/unit_tests.yml +++ b/.github/workflows/unit_tests.yml @@ -27,24 +27,15 @@ jobs: pytest: # Define the runner for this job - runs-on: ubuntu-latest + runs-on: self-hosted # Steps that define the job steps: - name: Checkout repository uses: actions/checkout@v3 - - name: Set up Python 3.9 - uses: actions/setup-python@v3 - with: - python-version: 3.9 - - - uses: actions/cache@v3 - with: - path: ~/.cache/pip - key: ${{ runner.os }}-pip-${{ hashFiles('setup.py') }} - restore-keys: | - ${{ runner.os }}-pip- + - name: Load configuration for self-hosted runner + run: cp /home/neuro/local_testing_config.toml narps_open/utils/configuration/testing_config.toml - name: Install dependencies run: | diff --git a/narps_open/pipelines/team_T54A.py b/narps_open/pipelines/team_T54A.py index eb96ea88..426b1b45 100644 --- a/narps_open/pipelines/team_T54A.py +++ b/narps_open/pipelines/team_T54A.py @@ -228,7 +228,7 @@ def get_run_level_analysis(self): name = 'skullstrip') # Smoothing - smooth = Node(IsotropicSmooth(fwhm = self.fwhm), + smooth = Node(IsotropicSmooth(fwhm = self.fwhm), # TODO : Previously set to 6 mm ? name = 'smooth') # Function node get_subject_infos - get subject specific condition information @@ -254,8 +254,8 @@ def get_run_level_analysis(self): parameters = Node(Function( function = self.get_parameters_file, input_names = ['filepath', 'subject_id', 'run_id', 'working_dir'], - output_names=['parameters_file']), - name='parameters') + output_names = ['parameters_file']), + name = 'parameters') parameters.inputs.working_dir = self.directories.working_dir # First temporal derivatives of the two regressors were also used, @@ -753,7 +753,7 @@ def get_group_level_outputs(self): for parameter_values in parameter_sets] # Handle groupComp - files : [ + files = [ 'randomise_tfce_corrp_tstat1.nii.gz', 'randomise_tstat1.nii.gz', 'zstat1.nii.gz',