Skip to content

Commit

Permalink
ci(pr-check): move output check to dedicated step
Browse files Browse the repository at this point in the history
  • Loading branch information
cmdoret committed Dec 9, 2024
1 parent f694498 commit 47f97e5
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/1-pr-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,17 @@ jobs:
echo "Cannot pull image: $IMAGE"
exit 1
fi
done
- name: Check output
run: |
for algo in ${FILELIST}; do
IMAGE=$(grep '^image: ' $algo | sed 's/^image: \+//' | tr -d \'\")
docker run -v tests/data:/data -v $PWD:/output -e INPUT=dummy.edf -e OUTPUT=out.tsv $IMAGE
HEADER_REGEX='^onset duration eventType confidence channels dateTime recordingDuration$'
if ! [[ $(head -n1 $PWD/output/out.tsv) =~ "$HEADER_REGEX" ]]; then
echo "Output does not have the expected header"
exit 1
fi
rm -f $PWD/out.tsv
done

0 comments on commit 47f97e5

Please sign in to comment.