Skip to content

Test Run

Test Run #2

Workflow file for this run

name: Test Run
on:
workflow_dispatch:
inputs:
test_class:
description: 'Test class or file to run (e.g., tests/test_example.py::TestClassName)'
required: false
default: ''
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install playwright
playwright install
- name: Run tests
run: |
if [ -z "${{ github.event.inputs.test_class }}" ]; then
pytest --maxfail=1 --disable-warnings -q
else
pytest ${{ github.event.inputs.test_class }} --maxfail=1 --disable-warnings -q
fi