-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (46 loc) · 1.42 KB
/
Copy pathgovernance-reports.yml
File metadata and controls
54 lines (46 loc) · 1.42 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
name: Governance Reports Validation
on:
workflow_dispatch:
pull_request:
paths:
- 'docs/reports/**'
- 'docs/schemas/governance_reports_manifest.schema.json'
- 'tools/validate_governance_reports.py'
- 'tool_tests/**'
- 'Makefile'
- '.pre-commit-config.yaml'
- '.github/workflows/governance-reports.yml'
push:
paths:
- 'docs/reports/**'
- 'docs/schemas/governance_reports_manifest.schema.json'
- 'tools/validate_governance_reports.py'
- 'tool_tests/**'
- 'Makefile'
- '.pre-commit-config.yaml'
- '.github/workflows/governance-reports.yml'
concurrency:
group: governance-reports-${{ github.ref }}
cancel-in-progress: true
jobs:
validate-governance-reports:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
cache: 'pip'
- name: Cache pre-commit environments
uses: actions/cache@v4
with:
path: ~/.cache/pre-commit
key: pre-commit-${{ runner.os }}-${{ hashFiles('.pre-commit-config.yaml') }}
- name: Install pre-commit
run: python3 -m pip install --upgrade pre-commit
- name: Run pre-commit hooks
run: pre-commit run --all-files
- name: Run governance validation suite
run: make governance-check