-
Notifications
You must be signed in to change notification settings - Fork 0
66 lines (55 loc) · 1.69 KB
/
validate-strict.yaml
File metadata and controls
66 lines (55 loc) · 1.69 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
name: validate-strict
on:
pull_request:
paths: &trigger_paths
- "kb/communities/**"
- "src/communitymech/schema/**"
- "src/communitymech/**/*.py"
- "scripts/**/*.py"
- "tests/**/*.py"
- "justfile"
- "pyproject.toml"
- "uv.lock"
- ".github/workflows/validate-strict.yaml"
push:
branches: [main]
paths: *trigger_paths
workflow_dispatch:
permissions:
contents: read
jobs:
validate-strict:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: extractions/setup-just@v3
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install uv
uses: astral-sh/setup-uv@v5
with:
version: "latest"
enable-cache: true
- name: Install dependencies
# --frozen fails the workflow if uv.lock is stale (don't silently
# re-resolve in CI). --all-extras keeps parity with the existing
# network-quality.yml workflow and ensures pytest + optional deps
# are available for the test step below.
run: uv sync --frozen --all-extras
- name: Run validate-strict (closed-schema LinkML validation)
run: just validate-strict
- name: Run audit-writers
run: just audit-writers
- name: Run tests
run: uv run pytest tests/ -q --no-cov
- name: Upload reports
if: always()
uses: actions/upload-artifact@v4
with:
name: validate-strict-reports-${{ github.run_id }}
path: |
reports/instance_validation_failures.tsv
reports/pipeline_writers_audit.tsv
if-no-files-found: warn