-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (39 loc) · 1.1 KB
/
Copy pathci.yml
File metadata and controls
44 lines (39 loc) · 1.1 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
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# Add language-specific setup + lint command here
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# Add language-specific setup + test command here
docs-gate:
name: Docs gate (codebase.md per module)
runs-on: ubuntu-latest
if: github.event_name == 'pull_request'
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Enforce per-module doc updates
env:
BASE_SHA: ${{ github.event.pull_request.base.sha }}
HEAD_SHA: ${{ github.event.pull_request.head.sha }}
PR_LABELS: ${{ join(github.event.pull_request.labels.*.name, ' ') }}
# Customise these per project — see scripts/docs-gate.sh
DOCS_GATE_SOURCE_ROOT: src
DOCS_GATE_EXT: py
run: bash scripts/docs-gate.sh