Skip to content

Commit

Permalink
test.yml: Add screenshot of page to test run
Browse files Browse the repository at this point in the history
  • Loading branch information
ianhinder authored Sep 17, 2024
1 parent 9268f03 commit d3693b5
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,16 @@ jobs:
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@v3
with:
name: screenshot
path: ${{ github.workspace }}/*.png

0 comments on commit d3693b5

Please sign in to comment.