-
Notifications
You must be signed in to change notification settings - Fork 3
119 lines (99 loc) · 3.13 KB
/
Copy pathci.yml
File metadata and controls
119 lines (99 loc) · 3.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
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
name: CI
on:
push:
branches:
- '**'
- '!integrated/**'
- '!stl-preview-head/**'
- '!stl-preview-base/**'
- '!generated'
- '!codegen/**'
- 'codegen/stl/**'
pull_request:
branches-ignore:
- 'stl-preview-head/**'
- 'stl-preview-base/**'
permissions:
contents: read
concurrency:
group: ci-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
lint:
timeout-minutes: 15
name: Lint & Licensing
runs-on: ubuntu-24.04
if: github.event_name == 'pull_request' || github.event.head_commit.message != 'codegen metadata'
steps:
- name: Check out repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Install uv
uses: astral-sh/setup-uv@11f9893b081a58869d3b5fccaea48c9e9e46f990 # v8.3.2
with:
enable-cache: false
version: "0.11.6"
- name: Install dependencies
run: uv sync --locked --all-extras
- name: Run lints
run: ./scripts/lint
- name: Check licensing
uses: fsfe/reuse-action@676e2d560c9a403aa252096d99fcab3e1132b0f5 # v6.0.0
build:
if: github.event_name == 'pull_request' || github.event.head_commit.message != 'codegen metadata'
timeout-minutes: 10
name: Build & Reproducibility
runs-on: ubuntu-24.04
steps:
- name: Check out repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Install uv
uses: astral-sh/setup-uv@11f9893b081a58869d3b5fccaea48c9e9e46f990 # v8.3.2
with:
enable-cache: false
version: "0.11.6"
- name: Verify reproducible distributions
run: ./scripts/check-reproducible
- name: Build distributions
run: SOURCE_DATE_EPOCH=946684800 uv build
- name: Check package metadata
run: uvx --from twine==6.2.0 twine check dist/*
test:
timeout-minutes: 20
name: Tests & Coverage
runs-on: ubuntu-24.04
steps:
- name: Check out repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Install uv
uses: astral-sh/setup-uv@11f9893b081a58869d3b5fccaea48c9e9e46f990 # v8.3.2
with:
enable-cache: false
version: "0.11.6"
- name: Bootstrap
run: ./scripts/bootstrap
- name: Run tests
run: ./scripts/test
- name: Enforce coverage
run: ./scripts/coverage
security:
timeout-minutes: 15
name: Dependency Security
runs-on: ubuntu-24.04
steps:
- name: Check out repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Install uv
uses: astral-sh/setup-uv@11f9893b081a58869d3b5fccaea48c9e9e46f990 # v8.3.2
with:
enable-cache: false
version: "0.11.6"
- name: Audit locked dependencies
run: ./scripts/audit