Skip to content

Commit

Permalink
[CI] from now on, unit_test workflow must run on self hosted runner
Browse files Browse the repository at this point in the history
  • Loading branch information
bclenet committed Aug 29, 2023
1 parent 69fd60b commit 6640ca3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 16 deletions.
15 changes: 3 additions & 12 deletions .github/workflows/unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down
8 changes: 4 additions & 4 deletions narps_open/pipelines/team_T54A.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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,
Expand Down Expand Up @@ -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',
Expand Down

0 comments on commit 6640ca3

Please sign in to comment.