Skip to content

Update test.yml

Update test.yml #4

Workflow file for this run

name: UI mock tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
run-tests:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
with:
python-version: '3.12'
- name: Start services
run: docker compose up -d --build
- name: Install test dependencies
run: |
pip install -r ./tests/requirements.txt
playwright install --with-deps
- name: Run tests
run: pytest
env:
ENV_FILE: .env.ci
- name: Stop services
if: always()
run: docker compose down -v