Skip to content

Set github action to upload playwright trace if previous step fails #119

Set github action to upload playwright trace if previous step fails

Set github action to upload playwright trace if previous step fails #119

Workflow file for this run

name: tests
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11"]
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
playwright install
- name: Test with pytest
run: pytest -vv -s --tracing retain-on-failure
- name: Archive failed playwright traces
if: failure()
uses: actions/upload-artifact@v4
with:
name: traces
path: |
test-results