Skip to content

Commit

Permalink
cleaning up comments
Browse files Browse the repository at this point in the history
  • Loading branch information
taha-abdullah committed Aug 28, 2024
1 parent 0d68c3c commit 876d767
Showing 1 changed file with 3 additions and 18 deletions.
21 changes: 3 additions & 18 deletions .github/workflows/quicktest_runner.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,9 @@ jobs:
steps:
- uses: actions/checkout@v2

# Check if fastsurfer output already exists, if so, skip run-fastsurfer and run pytest directly
check-output:
runs-on: self-hosted
# outputs:
# fastsurfer-output-exists: ${{ steps.check-fastsurfer-output.fastsurfer_output_exists }}
needs: checkout
steps:
- name: Check FastSurfer Output Directory
Expand Down Expand Up @@ -123,20 +122,7 @@ jobs:
python -m pip install --progress-bar off --upgrade pip \
setuptools wheel
python -m pip install --progress-bar off .[test]
# Check if FastSurfer output already exists
# - name: Check FastSurfer Output Directory
# run: |
# if [ -d "$RUNNER_FS_OUTPUT/subject1" ]; then
# echo "FastSurfer output directory for subject1 exists. Finishing job..."
# echo "HAS_FASTSURFER=false" >> $GITHUB_OUTPUT
# exit 0
# else
# echo "FastSurfer output directory for subject1 does not exist. Running FastSurfer..."
# echo "HAS_FASTSURFER=true" >> $GITHUB_OUTPUT
#
# fi
# id: check-fastsurfer-output
# Run FastSurfer
# Run fastsurfer on list of subjects
- name: Run FastSurfer
run: |
echo "Running FastSurfer..."
Expand All @@ -145,9 +131,8 @@ jobs:
./brun_fastsurfer.sh --subject_list $RUNNER_FS_MRI_DATA/subjects_list.txt \
--sd $RUNNER_FS_OUTPUT \
--parallel --threads 4 --3T --parallel_subjects surf
# if: steps.check-fastsurfer-output.outputs.HAS_FASTSURFER == 'true'
# Run pytest
# Test fastsurfer output
run-pytest:
runs-on: self-hosted
if: ${{ always() && contains(join(needs.*.result, ','), 'success') }}
Expand Down

0 comments on commit 876d767

Please sign in to comment.