2525 strategy :
2626 fail-fast : false
2727 matrix :
28- consumer : ["process_description", "score", "module_template"]
28+ consumer : [
29+ " process_description and local" ,
30+ " process_description and remote" ,
31+ " score and local" ,
32+ " score and remote" ,
33+ " module_template and local" ,
34+ " module_template and remote" ,
35+ ]
2936
3037 steps :
3138 - name : 🛡️ Harden Runner
@@ -35,74 +42,15 @@ jobs:
3542 egress-policy : audit
3643
3744 - name : Checkout PR
38- uses : actions/checkout@v4.2 .2
45+ uses : actions/checkout@v6.0 .2
3946
4047 - name : Prepare Python
41- run : |
42- bazel run --lockfile_mode=error //:ide_support
48+ run : bazel run //:ide_support
4349
44- - name : Prepare report directory
45- run : |
46- mkdir -p reports
47-
48- # The pipefail ensures that non 0 exit codes inside the pytest execution get carried into the pipe
49- # & make the tests red in the end. Without this we only would check the exit code of the 'tee' command.
5050 - name : Run Consumer tests
51-
52- run : |
53- pytest_rc=0
54- .venv_docs/bin/python -m pytest -vv src/tests/ \
55- --repo="$CONSUMER" \
56- --junitxml="reports/${{ matrix.consumer }}.xml" \
57- || pytest_rc=$?
58-
59-
60- if [ -f "consumer_test.log" ]; then
61- src_log="consumer_test.log"
62- else
63- echo "consumer_test.log not found; expected at ./consumer_test.log"
64- exit ${pytest_rc:-1}
65- fi
66-
67- dest_log="reports/${{ matrix.consumer }}.log"
68- mv "$src_log" "$dest_log"
69-
70- tail -n 15 "$dest_log" >> "$GITHUB_STEP_SUMMARY"
71-
72- cat "$dest_log"
73- exit $pytest_rc
51+ run : .venv_docs/bin/python -m pytest -vv -s src/tests/test_consumer.py -k "$CONSUMER"
7452 env :
7553 FORCE_COLOR : " 1"
7654 TERM : xterm-256color
7755 PYTHONUNBUFFERED : " 1"
7856 CONSUMER : ${{ matrix.consumer }}
79-
80- - name : Upload consumer test report
81- if : ${{ always() }}
82- uses : actions/upload-artifact@v4
83- with :
84- name : tests-${{ matrix.consumer }}
85- path : reports/
86-
87- summarize :
88- needs : test
89- runs-on : ubuntu-latest
90- if : ${{ always() }}
91- steps :
92- - name : Prepare consumer report directory
93- run : |
94- mkdir -p tests-report
95-
96- - name : Download individual consumer reports
97- uses : actions/download-artifact@v4
98- with :
99- pattern : tests-*
100- path : tests-report
101- merge-multiple : true
102-
103- - name : Upload bundled consumer report
104- if : ${{ always() }}
105- uses : actions/upload-artifact@v4
106- with :
107- name : tests-report
108- path : tests-report
0 commit comments