forked from ChelseaKR/habitable
-
Notifications
You must be signed in to change notification settings - Fork 0
75 lines (69 loc) · 2.17 KB
/
Copy pathci.yml
File metadata and controls
75 lines (69 loc) · 2.17 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# SPDX-License-Identifier: AGPL-3.0-or-later
name: ci
on:
push:
branches: [main]
pull_request:
workflow_dispatch:
permissions:
contents: read
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
gate:
name: lint · types · tests (the merge gate)
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
- name: Install uv (pinned)
uses: astral-sh/setup-uv@d0cc045d04ccac9d8b7881df0226f9e82c39688e # v6
with:
version: "0.11.19"
enable-cache: true
- name: Sync environment (Python 3.14, locked)
run: uv sync --frozen
- name: Show interpreter
run: uv run python -c "import sys; print('Python', sys.version)"
- name: Run the full gate (ruff + mypy --strict + pytest + coverage)
run: make verify
- name: Upload coverage
if: always()
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
with:
name: coverage-xml
path: coverage.xml
if-no-files-found: ignore
audit:
name: dependency vulnerability audit
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
- name: Install uv (pinned)
uses: astral-sh/setup-uv@d0cc045d04ccac9d8b7881df0226f9e82c39688e # v6
with:
version: "0.11.19"
enable-cache: true
- name: Sync environment
run: uv sync --frozen
- name: Audit dependencies (pip-audit)
run: uv run pip-audit
build:
name: build wheel + sdist
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
- name: Install uv (pinned)
uses: astral-sh/setup-uv@d0cc045d04ccac9d8b7881df0226f9e82c39688e # v6
with:
version: "0.11.19"
- name: Build distributions
run: uv build
- name: Upload distributions
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
with:
name: dist
path: dist/*