Skip to content

Commit 347cdf4

Browse files
feat: add CI workflows and fixture configurations for dry-run testing and Python environment setup
1 parent f0e4fdd commit 347cdf4

File tree

5 files changed

+62
-6
lines changed

5 files changed

+62
-6
lines changed

.github/workflows/fixtures.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Fixture Dry Run
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches: [main]
7+
workflow_dispatch:
8+
9+
jobs:
10+
dry-run:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
fixture: [basic, workflow]
15+
permissions:
16+
contents: read
17+
steps:
18+
- uses: actions/checkout@v4
19+
- uses: actions/setup-node@v4
20+
with:
21+
node-version: 20
22+
- name: Install dependencies
23+
run: npm ci
24+
25+
- name: Build TypeScript
26+
run: npm run build
27+
28+
- name: Bundle action
29+
run: npm run bundle
30+
31+
- name: Dry run CPython patch updates
32+
uses: ./
33+
with:
34+
track: '3.11'
35+
dry_run: true
36+
paths: |
37+
fixtures/${{ matrix.fixture }}/**
38+
env:
39+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

docs/tasks.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -189,13 +189,13 @@ Use Context7 MCP for up to date documentation.
189189
Cover fetchers, parsers, matchers, rewriter, PR logic (mocked).
190190
Verify: Coverage ≥ 90%.
191191

192-
28. [ ] **Fixture repos**
193-
Cases: only workflows, only Docker, mixed, conflicting tracks, prerelease-only.
194-
Verify: Snapshot outputs stable.
192+
28. [-] **Fixture repos**
193+
Cases: only workflows, only Docker, mixed, conflicting tracks, prerelease-only.
194+
Verify: Snapshot outputs stable.
195195

196-
29. [ ] **Dry-run CI job on fixtures**
197-
Upload `GITHUB_STEP_SUMMARY` artifacts.
198-
Verify: Artifacts contain expected diffs.
196+
29. [x] **Dry-run CI job on fixtures**
197+
Upload `GITHUB_STEP_SUMMARY` artifacts.
198+
Verify: Artifacts contain expected diffs.
199199

200200
30. [ ] **E2E sandbox nightly**
201201
Nightly scheduled PR cycle in a sandbox repo.
@@ -266,3 +266,5 @@ Use Context7 MCP for up to date documentation.
266266
45. [ ] **Performance baseline**
267267
Log files scanned and duration.
268268
Verify: Fixture scan < 3s on CI.
269+
270+
- [ ] Complete work on Task 28 (fixture repositories)

fixtures/basic/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
FROM python:3.11.6-slim
2+
ENV PYTHON_VERSION=3.11.6

fixtures/basic/runtime.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
python-3.11.6
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: sample
2+
3+
on:
4+
push: {}
5+
6+
jobs:
7+
test:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/setup-python@v4
11+
with:
12+
python-version: '3.10.9'

0 commit comments

Comments
 (0)