File tree Expand file tree Collapse file tree 6 files changed +37
-449
lines changed
actions/run-playwright-tests Expand file tree Collapse file tree 6 files changed +37
-449
lines changed Original file line number Diff line number Diff line change 1+ name : " Run Util & Example Tests"
2+ runs-on : ubuntu-latest
3+ timeout-minutes : 3
4+ runs :
5+ steps :
6+ - uses : actions/checkout@v4
7+ - name : Set up Python
8+ uses : actions/setup-python@v5
9+ with :
10+ python-version : ' 3.13'
11+ - name : Install dependencies
12+ run : |
13+ python -m pip install --upgrade pip
14+ pip install -r requirements.txt
15+ - name : Ensure browsers are installed
16+ run : python -m playwright install --with-deps
17+ - name : Run util tests
18+ run : pytest -m "utils" --ignore=tests/
19+ - uses : actions/upload-artifact@v4
20+ if : ${{ !cancelled() }}
21+ with :
22+ name : result-output-utils
23+ path : test-results/
24+ retention-days : 3
25+ - name : Run example tests
26+ run : pytest --ignore=tests_utils/
27+ - uses : actions/upload-artifact@v4
28+ if : ${{ !cancelled() }}
29+ with :
30+ name : result-output-example
31+ path : test-results/
32+ retention-days : 3
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 2929 type : string
3030
3131jobs :
32- test-unit :
33- name : " Unit tests "
32+ run-tests :
33+ name : " Run Util & Example Tests "
3434 runs-on : ubuntu-latest
35- timeout-minutes : 5
35+ timeout-minutes : 3
3636 steps :
37- - name : " Checkout code"
38- uses : actions/checkout@v4
39- - name : " Run unit test suite"
40- run : |
41- make test-unit
42- - name : " Save the result of fast test suite"
43- run : |
44- echo "Nothing to save"
45- test-lint :
46- name : " Linting"
47- runs-on : ubuntu-latest
48- timeout-minutes : 5
49- steps :
50- - name : " Checkout code"
51- uses : actions/checkout@v4
52- - name : " Run linting"
53- run : |
54- make test-lint
55- - name : " Save the linting result"
56- run : |
57- echo "Nothing to save"
58- test-coverage :
59- name : " Test coverage"
60- needs : [test-unit]
61- runs-on : ubuntu-latest
62- timeout-minutes : 5
63- steps :
64- - name : " Checkout code"
65- uses : actions/checkout@v4
66- - name : " Run test coverage check"
67- run : |
68- make test-coverage
69- - name : " Save the coverage check result"
70- run : |
71- echo "Nothing to save"
72- perform-static-analysis :
73- name : " Perform static analysis"
74- needs : [test-unit]
75- runs-on : ubuntu-latest
76- permissions :
77- id-token : write
78- contents : read
79- timeout-minutes : 5
80- steps :
81- - name : " Checkout code"
82- uses : actions/checkout@v4
83- with :
84- fetch-depth : 0 # Full history is needed to improving relevancy of reporting
85- - name : " Perform static analysis"
86- uses : ./.github/actions/perform-static-analysis
87- with :
88- sonar_organisation_key : " ${{ vars.SONAR_ORGANISATION_KEY }}"
89- sonar_project_key : " ${{ vars.SONAR_PROJECT_KEY }}"
90- sonar_token : " ${{ secrets.SONAR_TOKEN }}"
37+ - name : " Run Playwright Tests"
38+ uses : ./.github/actions/run-playwright-tests
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments