-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (31 loc) · 1.07 KB
/
Copy pathci.yml
File metadata and controls
40 lines (31 loc) · 1.07 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
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
lint-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v5
- name: Install project
run: uv sync
- name: Install Playwright browsers
# test_interaction_tools.py launches a real Chromium via Playwright.
# `uv sync` installs the `playwright` Python package but does NOT
# download the browser binary; without this step the test fails
# with "Executable doesn't exist at ...".
run: uv run playwright install --with-deps chromium
- name: Lint
run: uv run ruff check .
- name: Type check
run: npx --yes pyright@1.1.410
- name: Test
# test_interaction_tools.py is automatically skipped in CI (it
# detects the CI env var and skips the real-browser tests that
# occasionally hang on the sandboxed runner). The other 330
# tests are pure Python and complete in ~50s.
run: uv run pytest