-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (32 loc) · 1.47 KB
/
Copy pathrender-check.yml
File metadata and controls
40 lines (32 loc) · 1.47 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
name: render-check
# Renders the template with copier on every pull request, then runs the generated
# project's own slice — so a broken template (a bad Jinja include path, an undefined
# variable, a syntax error) is caught before merge, not only when a downstream instance
# runs `copier update`. Guards the class of bug in #257: the .claude/agents/*.md.jinja
# wrappers' {% include %} paths must be clone-root-relative (template/agents/…), or a
# claude-family render/update fails outright — which no CI caught because none ran copier.
#
# No paths filter: always runs and reports a status, so it can serve as a required check.
on:
pull_request:
permissions:
contents: read
jobs:
render-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
# Full history + tags: test_update_compat renders the previous RELEASE and
# updates onto HEAD, so it needs the vX.Y.Z tags. The default depth-1 checkout
# has none, and the test would skip itself into a permanent green (issue #342).
fetch-depth: 0
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install copier
run: pip install copier
- name: Render the template (copier) + run the generated slice
run: python -m unittest tests.test_render_and_run -v
- name: copier update from the previous release (instance compatibility)
run: python -m unittest tests.test_update_compat -v