Skip to content

Add github action for e2e tests #4

Add github action for e2e tests

Add github action for e2e tests #4

Workflow file for this run

name: Run e2e (browser) tests
on:
pull_request:
branches:
- bau/playwright-dev-test
workflow_call:
inputs:
copilot_environment:
description: "Copilot environment to deploy to"
type: choice
options:
- dev
- test
default: dev
jobs:
run_tests:
name: End-to-end tests
runs-on: ubuntu-latest
environment: %{{ copilot_environment }}

Check failure on line 20 in .github/workflows/test_e2e.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/test_e2e.yml

Invalid workflow file

You have an error in your yaml syntax on line 20
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.11'
cache: 'pip' # caching pip dependencies
- name: Install dependencies
run: pip install -r requirements-dev.txt
- name: Run tests
run: pytest tests --e2e --e2e-env ${{ inputs.copilot_environment }}