-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (39 loc) · 1.13 KB
/
Copy pathtests.yml
File metadata and controls
46 lines (39 loc) · 1.13 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: Tests
on:
pull_request:
push:
branches: [main]
jobs:
lint:
name: notifications (lint)
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup uv
uses: astral-sh/setup-uv@v4
- name: Lint (ruff)
run: |
uvx ruff format --check notifications
uvx ruff check notifications
test:
name: notifications (tests, py${{ matrix.python }})
runs-on: ubuntu-latest
timeout-minutes: 15
strategy:
fail-fast: false
matrix:
python: ["3.12", "3.13", "3.14"]
env:
# Pin every `uv run` in this job — the test runner AND the daemon/relay
# subprocesses it spawns (which inherit the env) — to the matrix interpreter,
# so the e2e tests actually exercise this Python version end to end.
UV_PYTHON: ${{ matrix.python }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup uv
uses: astral-sh/setup-uv@v4
- name: Run notifications test suite
run: uv run -qs notifications/tests/run.py -q