diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index 7b1f5570..7c587537 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -56,8 +56,18 @@ jobs: - name: Extract and Check FDR Values run: | grep -A 5 "FPR Accuracy Recall FDR" job_output.txt > results_section.txt - if awk -v threshold="$FDR_THRESHOLD" 'NR > 1 { if ($5 > threshold) { print "Error: FDR too high in row " NR " with FDR=" $5; exit 1 } }' results_section.txt; then + + if awk -v threshold="$FDR_THRESHOLD" ' + NR > 1 { + if ($5 > threshold) { + print "Error: FDR too high in row " NR " with FDR=" $5 + exit 1 + } + } + ' results_section.txt; then echo "All FDR values are within acceptable range." + else + exit 1 fi - name: Upload Output as Artifact