Skip to content

Commit

Permalink
Add github action for e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelhwilliams committed Sep 13, 2024
1 parent f007080 commit 4a51cea
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/test_e2e.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
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: string
default: dev
workflow_dispatch:
inputs:
copilot_environment:
description: "Copilot environment to deploy to"
type: choice
options:
- dev
- test
default: dev

jobs:
run_tests:
name: e2e tests
runs-on: ubuntu-latest
environment: ${{ inputs.copilot_environment }}
steps:
- uses: actions/checkout@v4
- 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 }}

0 comments on commit 4a51cea

Please sign in to comment.