-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (35 loc) · 1 KB
/
ci.yml
File metadata and controls
46 lines (35 loc) · 1 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
name: CI
on:
push:
branches: [master, main]
pull_request:
branches: [master, main]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
uv venv
uv pip install -e ".[dev]"
echo "$GITHUB_WORKSPACE/.venv/bin" >> $GITHUB_PATH
- name: Install Playwright browsers
run: playwright install chromium --with-deps
- name: Lint
run: ruff check src tests
- name: Format check
run: ruff format --check src tests
- name: Unit tests
run: pytest tests/unit/ -q --tb=short
- name: Integration tests
run: pytest tests/integration/ -q --tb=short
- name: E2E tests
run: pytest tests/e2e/ -q --tb=short --browser chromium