generated from NHSDigital/repository-template
-
Notifications
You must be signed in to change notification settings - Fork 2
53 lines (42 loc) · 1.11 KB
/
functional.yaml
File metadata and controls
53 lines (42 loc) · 1.11 KB
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
41
42
43
44
45
46
47
48
49
50
51
52
53
name: Functional tests (all devices)
on:
schedule:
- cron: "0 3 * * *"
workflow_dispatch:
jobs:
test:
name: Test
strategy:
fail-fast: false
matrix:
device:
- Desktop Chrome
- Desktop Edge
- Desktop Firefox
- Desktop Safari
- Galaxy S9+
- Pixel 7
- iPad (gen 7) landscape
- iPhone 15
max-parallel: 2
permissions: {}
runs-on: ubuntu-latest
env:
TZ: "Europe/London"
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v6
- name: Install Playwright
run: uv run playwright install --with-deps
- name: Run tests
run: uv run pytest --device "${{ matrix.device }}"
env:
BASE_URL: ${{ vars.BASE_URL }}
BASIC_AUTH_PASSWORD: ${{ secrets.BASIC_AUTH_PASSWORD }}
BASIC_AUTH_USERNAME: ${{ secrets.BASIC_AUTH_USERNAME }}
- name: Upload Allure results
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.device }}
path: allure-results