File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Tests
2+
3+ on :
4+ push :
5+ branches : [main]
6+ pull_request :
7+ branches : [main]
8+
9+ jobs :
10+
11+ api-tests :
12+ name : API Tests
13+ runs-on : ubuntu-latest
14+ steps :
15+ - uses : actions/checkout@v4
16+
17+ - uses : actions/setup-python@v5
18+ with :
19+ python-version : " 3.12"
20+
21+ - name : Install dependencies
22+ run : pip install -r requirements.txt
23+
24+ - name : Run API tests
25+ run : pytest tests/api/ -m api -v
26+
27+ - name : Upload API report
28+ uses : actions/upload-artifact@v4
29+ if : always()
30+ with :
31+ name : api-report
32+ path : report.html
33+
34+ ui-tests :
35+ name : UI Tests
36+ runs-on : ubuntu-latest
37+ steps :
38+ - uses : actions/checkout@v4
39+
40+ - uses : actions/setup-python@v5
41+ with :
42+ python-version : " 3.12"
43+
44+ - name : Install dependencies
45+ run : pip install -r requirements.txt
46+
47+ - name : Install Playwright browsers
48+ run : playwright install chromium --with-deps
49+
50+ - name : Run UI tests
51+ run : pytest tests/ui/ -m ui -v
52+
53+ - name : Upload UI report
54+ uses : actions/upload-artifact@v4
55+ if : always()
56+ with :
57+ name : ui-report
58+ path : report.html
You can’t perform that action at this time.
0 commit comments