Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

98 generate web page preview during test #99

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from
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
Loading