Python reporter #58
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: E2E tests | |
on: | |
pull_request: | |
branches: ["main"] | |
workflow_call: | |
jobs: | |
e2e-tests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: "1.21.7" | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.10" | |
- uses: oven-sh/setup-bun@v2 | |
- run: go mod tidy | |
- run: cd reporters/golang && go mod tidy && cd ../.. | |
- run: cd reporters/javascript/tracethat.dev && bun install && bun run build && cd ../.. | |
- run: cd reporters/python && pip install -r requirements.txt && cd ../.. | |
- run: cd frontend && bun install && cd ../.. | |
- run: cd e2e-tests && bun install && bunx playwright install --with-deps chromium && cd ../.. | |
- run: cd e2e-tests && bun run test && cd ../.. | |
- uses: actions/upload-artifact@v4 | |
if: ${{ !cancelled() }} | |
with: | |
name: playwright-report | |
path: e2e-tests/playwright-report/ | |
retention-days: 3 |