Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 12 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,17 @@ jobs:
# Launch the project from docker-compose.yml and wait up to
# 30s for its built-in health check to return "healthy"
docker compose -f compose.yml up --wait --wait-timeout 30
docker compose -f compose.yml down

- name: Run Pytest tests
- name: Take screenshot of page
uses: karol-brejna-i/webpage-screenshot-action@v1
with:
url: http://localhost:5000

- name: Bring down container
run: |
docker compose -f compose.yml run --entrypoint "" web pytest
docker compose -f compose.yml down

- uses: actions/upload-artifact@v4
with:
name: screenshot
path: ${{ github.workspace }}/*.png