From 47f97e56bd3eb92072acd8cf681f96f29a481638 Mon Sep 17 00:00:00 2001 From: cmdoret Date: Mon, 9 Dec 2024 15:58:16 +0100 Subject: [PATCH] ci(pr-check): move output check to dedicated step --- .github/workflows/1-pr-check.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/1-pr-check.yml b/.github/workflows/1-pr-check.yml index 3fdbeda..f4c6389 100644 --- a/.github/workflows/1-pr-check.yml +++ b/.github/workflows/1-pr-check.yml @@ -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 -