Skip to content

Commit a369f59

Browse files
committed
Tests: Dump logs on failure
1 parent 554f77f commit a369f59

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/tests.yml

+4-3
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,16 @@ jobs:
1818
- name: Pause for stack to start
1919
run: sleep 10
2020

21-
- name: Show running containers
22-
run: docker ps -a
23-
2421
- name: Integration tests - API
2522
run: docker run
2623
--env CONF_DIR=/dp3/tests/test_config
2724
--network container:dp3_api
2825
dp3_interpreter python -m unittest discover -s tests/test_api -v
2926

27+
- name: Dump Logs on Failure
28+
if: failure()
29+
run: docker compose logs
30+
3031
- name: Check worker errors
3132
run: docker compose logs worker | grep "WARNING\|ERROR\|exception" | grep -v "RabbitMQ\|it's\ OK\ now,\ we're\ successfully\ connected" || true
3233

0 commit comments

Comments
 (0)