Skip to content

Commit f24d7a5

Browse files
adamcegielkaclaude
andcommitted
ci: add GitHub Actions workflow for API and UI tests
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent a94887e commit f24d7a5

1 file changed

Lines changed: 58 additions & 0 deletions

File tree

.github/workflows/tests.yml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
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

0 commit comments

Comments
 (0)