generated from nhs-england-tools/repository-template
-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathaction.yml
More file actions
36 lines (36 loc) · 994 Bytes
/
action.yml
File metadata and controls
36 lines (36 loc) · 994 Bytes
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
name: "Run Util & Example Tests"
runs-on: ubuntu-latest
timeout-minutes: 3
runs:
using: "composite"
steps:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.13'
- name: Install dependencies
shell: bash
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Ensure browsers are installed
shell: bash
run: python -m playwright install --with-deps
- name: Run util tests
shell: bash
run: pytest -m "utils" --ignore=tests/
- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: result-output-utils
path: test-results/
retention-days: 3
- name: Run example tests
shell: bash
run: pytest --ignore=tests_utils/
- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: result-output-example
path: test-results/
retention-days: 3