File tree Expand file tree Collapse file tree 1 file changed +13
-20
lines changed
Expand file tree Collapse file tree 1 file changed +13
-20
lines changed Original file line number Diff line number Diff line change @@ -113,13 +113,6 @@ jobs:
113113 echo "Test App is running"
114114 curl -vf http://localhost:$BASIL_APP_PORT
115115
116- - name : Debug podman command in patched tmt
117- run : |
118- sudo podman run --rm \
119- --entrypoint python3 \
120- basil-api-image:latest \
121- -c "import sys; from pathlib import Path; print(Path('/usr/local/lib/python3.12/site-packages/tmt/steps/provision/podman.py').read_text()); import tmt; print(tmt.__version__, tmt.__file__)"
122-
123116 - name : Set up Python
124117 uses : actions/setup-python@v5
125118 with :
@@ -133,19 +126,6 @@ jobs:
133126 - name : API unit testing
134127 run : |
135128 pytest -v ./api/test --cov=api --cov-branch --cov-report=term --cov-report=html
136-
137- - name : Copy /var/tmp/tmt from basil-api-latest container
138- if : failure()
139- run : |
140- sudo podman cp basil-api-latest:/var/test-runs ./tmt-logs
141- tar -czf tmt-logs.tar.gz ./tmt-logs
142-
143- - name : Upload tmt logs as artifact
144- uses : actions/upload-artifact@v4
145- if : failure()
146- with :
147- name : tmt-logs
148- path : tmt-logs.tar.gz
149129
150130 - name : Create tarball of coverage report
151131 run : |
@@ -190,6 +170,19 @@ jobs:
190170 api/user-files
191171 retention-days : 7
192172
173+ - name : Copy /var/tmp/tmt from basil-api-latest container
174+ if : failure()
175+ run : |
176+ sudo podman cp basil-api-latest:/var/test-runs ./tmt-logs
177+ tar -czf tmt-logs.tar.gz ./tmt-logs
178+
179+ - name : Upload tmt logs as artifact
180+ uses : actions/upload-artifact@v4
181+ if : failure()
182+ with :
183+ name : tmt-logs
184+ path : tmt-logs.tar.gz
185+
193186 - name : Collect logs of all running Podman containers
194187 if : always()
195188 run : |
You can’t perform that action at this time.
0 commit comments