-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (40 loc) · 1.02 KB
/
ci.yml
File metadata and controls
53 lines (40 loc) · 1.02 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
52
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v5
with:
python-version: "3.11"
- name: Install dependencies
run: uv sync --all-extras
- name: Lint
run: uv run ruff check src/ tests/
- name: Type check
run: uv run mypy src/gemstack
- name: Test
run: uv run pytest --cov=src/gemstack --cov-report=xml
- name: Dependency audit
run: uv run pip-audit --ignore-vuln CVE-2026-3219 --skip-editable
build:
runs-on: ubuntu-latest
needs: [test]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Full history needed for hatch-vcs
- uses: astral-sh/setup-uv@v5
with:
python-version: "3.11"
- name: Build package
run: uv build
- uses: actions/upload-artifact@v4
with:
name: dist
path: dist/