Skip to content

Commit

Permalink
CI: Show server log
Browse files Browse the repository at this point in the history
  • Loading branch information
mgxd committed Oct 23, 2024
1 parent ff798bb commit 80868ad
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,13 +100,16 @@ jobs:
env:
MIGAS_BYPASS_RATE_LIMIT: '1'
- name: Verify server is available
run: docker port ${MIGAS_SERVER_NAME} && sleep 10
run: docker port ${MIGAS_SERVER_NAME} && sleep 10 && docker ps
env:
MIGAS_SERVER_NAME: app
- name: Run tests
env:
MIGAS_FRESH_DB: '1'
run: python -m pytest -sv --doctest-modules --pyargs migas
- name: Show server logs (debug)
if: always()
run: docker container logs app
- name: Stop local server
run: docker compose -f migas-server/docker-compose.yml down

Expand Down

0 comments on commit 80868ad

Please sign in to comment.