Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit f1347bc

Browse files
authored
Fix the tests-done Github Actions job (#10444)
1 parent 8ae0bdc commit f1347bc

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

.github/workflows/tests.yml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,12 +347,29 @@ jobs:
347347

348348
# a job which marks all the other jobs as complete, thus allowing PRs to be merged.
349349
tests-done:
350+
if: ${{ always() }}
350351
needs:
352+
- lint
353+
- lint-crlf
354+
- lint-newsfile
355+
- lint-sdist
351356
- trial
352357
- trial-olddeps
353358
- sytest
354359
- portdb
355360
- complement
356361
runs-on: ubuntu-latest
357362
steps:
358-
- run: "true"
363+
- name: Set build result
364+
env:
365+
NEEDS_CONTEXT: ${{ toJSON(needs) }}
366+
# the `jq` incantation dumps out a series of "<job> <result>" lines
367+
run: |
368+
set -o pipefail
369+
jq -r 'to_entries[] | [.key,.value.result] | join(" ")' \
370+
<<< $NEEDS_CONTEXT |
371+
while read job result; do
372+
if [ "$result" != "success" ]; then
373+
echo "::set-failed ::Job $job returned $result"
374+
fi
375+
done

changelog.d/10444.misc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Update the `tests-done` Github Actions status.

0 commit comments

Comments
 (0)