-
Notifications
You must be signed in to change notification settings - Fork 39
40 lines (38 loc) · 1.31 KB
/
playwright.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: "Playwright tests"
on:
push:
branches: ["master"]
pull_request:
branches: ["master"]
jobs:
playwright:
name: "Playwright Tests"
runs-on: ubuntu-latest
steps:
- name: "Checkout repository"
uses: "actions/checkout@v4"
- name: "Setup Python"
uses: "actions/setup-python@v4"
with:
python-version: 3.12
- name: "Setup Node"
uses: actions/setup-node@v4
with:
node-version: 18
- name: "Install all dependencies"
run: |
python -m pip install --upgrade pip
pip install -r requirements/requirements.txt
pip install -r requirements/test-requirements.txt
cd admin_ui && npm install
- name: Build front end assets
run: cd admin_ui && npm run build
- name: Ensure Chromium is installed
run: python -m playwright install chromium --with-deps
- name: Start Playwright tests
run: ./scripts/run-e2e-test.sh
- uses: actions/upload-artifact@v3
with:
name: playwright-artifacts
path: videos/
if: always()