-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsourceos-interaction-codegen.yml
More file actions
42 lines (36 loc) · 1.38 KB
/
Copy pathsourceos-interaction-codegen.yml
File metadata and controls
42 lines (36 loc) · 1.38 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
name: SourceOS Interaction Codegen
on:
pull_request:
branches: ["main"]
paths:
- "schemas/SourceOSInteractionEvent.json"
- "generated/typescript/sourceos-interaction-event.ts"
- "generated/python/sourceos_interaction_event.py"
- "tools/generate_sourceos_interaction_types.py"
- ".github/workflows/sourceos-interaction-codegen.yml"
- "docs/contract-additions/sourceos-interaction-catalog.md"
push:
branches: ["main", "work/interaction-codegen-116"]
paths:
- "schemas/SourceOSInteractionEvent.json"
- "generated/typescript/sourceos-interaction-event.ts"
- "generated/python/sourceos_interaction_event.py"
- "tools/generate_sourceos_interaction_types.py"
- ".github/workflows/sourceos-interaction-codegen.yml"
- "docs/contract-additions/sourceos-interaction-catalog.md"
permissions:
contents: read
jobs:
validate-interaction-codegen:
name: Validate generated interaction types
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Check generated files are current
run: python tools/generate_sourceos_interaction_types.py --check
- name: Compile generated Python type module
run: python -m py_compile generated/python/sourceos_interaction_event.py