Skip to content

Run test in headless mode within CI #7

Run test in headless mode within CI

Run test in headless mode within CI #7

Workflow file for this run

name: Playwright Tests
env:
CI: true
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python (latest stable version)
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
playwright install --with-deps
- name: Run Playwright tests in headless mode
run: pytest tests --headless