-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (51 loc) · 1.48 KB
/
ci-python-skills.yml
File metadata and controls
59 lines (51 loc) · 1.48 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
# Digital Service Orchestra (DSO) — Python Skill/Doc Tests
# Runs pytest against tests/skills/ and tests/docs/.
#
# This workflow is intentionally separate from ci.yml so that commits that
# touch ONLY .md files (e.g., the GREEN pass adding a Prohibited Fix Patterns
# section) still trigger these tests. ci.yml's top-level paths-ignore for
# '**/*.md' would suppress the job if it lived there.
name: CI Python Skills
on:
push:
branches:
- main
- 'feature/**'
- 'bugfix/**'
- 'epic/**'
- 'exp/**'
paths:
- 'plugins/dso/**/*.md'
- 'plugins/dso/**/*.py'
- 'tests/skills/**'
- 'tests/docs/**'
pull_request:
branches:
- main
paths:
- 'plugins/dso/**/*.md'
- 'plugins/dso/**/*.py'
- 'tests/skills/**'
- 'tests/docs/**'
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test-python-skills:
name: Python Skill/Doc Tests
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.13'
- name: Install Python dependencies
run: pip install pytest
- name: Run Python skill/doc tests
run: bash tests/skills/run-python-tests.sh
- name: Job timing report
if: always()
run: echo "test-python-skills completed at $(date -u +%Y-%m-%dT%H:%M:%SZ)"