-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (25 loc) · 750 Bytes
/
Copy pathci.yml
File metadata and controls
31 lines (25 loc) · 750 Bytes
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
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
env:
# Dynamic version (hatch-vcs/setuptools-scm) would drift on every commit
# after a tag, breaking `uv sync --locked`. Pin a fixed version so the
# lockfile validation is deterministic regardless of git state. Release
# builds use the real tag-derived version (see release.yml).
SETUPTOOLS_SCM_PRETEND_VERSION: "0.0.0"
steps:
- uses: actions/checkout@v4
- name: Set up uv
uses: astral-sh/setup-uv@v8.2.0
with:
enable-cache: true
- name: Install dependencies
run: uv sync --locked
- name: Pytest
run: uv run pytest -q