-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (43 loc) · 1.23 KB
/
ci.yml
File metadata and controls
51 lines (43 loc) · 1.23 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
47
48
49
50
51
# CI: each command runs in its own step so the Actions UI shows whether a hang is
# uv sync, ruff, or pytest. If a job stalls, expand the last step that printed output.
name: CI
on:
push:
branches: [main, master]
pull_request:
jobs:
pytest:
runs-on: ubuntu-latest
timeout-minutes: 45
strategy:
fail-fast: false
matrix:
python-version: ["3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v4
with:
# Pin to avoid surprise regressions from `latest` during CI installs.
version: "0.10.9"
- name: Diagnostics
run: |
set -euo pipefail
uname -a
echo "matrix python-version=${{ matrix.python-version }}"
command -v uv
uv --version
command -v python3
python3 --version
uv python list || true
- name: Install dependencies (uv sync)
run: |
set -euo pipefail
uv sync --group dev --python ${{ matrix.python-version }} -v
- name: Ruff lint
run: |
set -euo pipefail
uv run ruff check tests
- name: Pytest
run: |
set -euo pipefail
uv run pytest -q