workflowforge 1.1.3__tar.gz → 2.0.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- workflowforge-2.0.0/.github/dependabot.yml +14 -0
- {workflowforge-1.1.3 → workflowforge-2.0.0}/.github/pull_request_template.md +1 -1
- workflowforge-2.0.0/.github/workflows/publish.yml +245 -0
- {workflowforge-1.1.3 → workflowforge-2.0.0}/.gitignore +3 -0
- workflowforge-2.0.0/.markdownlint.json +7 -0
- {workflowforge-1.1.3 → workflowforge-2.0.0}/.pre-commit-config.yaml +18 -11
- workflowforge-2.0.0/AGENTS.md +90 -0
- workflowforge-2.0.0/CHANGELOG.md +335 -0
- {workflowforge-1.1.3 → workflowforge-2.0.0}/CODE_OF_CONDUCT.md +1 -1
- {workflowforge-1.1.3 → workflowforge-2.0.0}/CONTRIBUTING.md +16 -4
- workflowforge-2.0.0/LICENSE +661 -0
- {workflowforge-1.1.3 → workflowforge-2.0.0}/MANIFEST.in +1 -0
- workflowforge-1.1.3/LICENSE → workflowforge-2.0.0/NOTICE +8 -1
- workflowforge-2.0.0/PKG-INFO +686 -0
- workflowforge-2.0.0/README.md +637 -0
- {workflowforge-1.1.3 → workflowforge-2.0.0}/README_PRECOMMIT.md +2 -0
- {workflowforge-1.1.3 → workflowforge-2.0.0}/SECURITY.md +1 -1
- workflowforge-2.0.0/assets/workflowforge-color.svg +9 -0
- workflowforge-2.0.0/docs/codebuild-parity.md +145 -0
- workflowforge-2.0.0/docs/github-actions-parity.md +188 -0
- {workflowforge-1.1.3 → workflowforge-2.0.0}/examples/README.md +13 -10
- {workflowforge-1.1.3 → workflowforge-2.0.0}/examples/azure_devops/hello_world.py +6 -1
- workflowforge-2.0.0/examples/azure_devops/hello_world.yml +25 -0
- {workflowforge-1.1.3 → workflowforge-2.0.0}/examples/azure_devops/python_ci.py +7 -2
- {workflowforge-1.1.3 → workflowforge-2.0.0}/examples/azure_devops/python_ci.yml +31 -19
- {workflowforge-1.1.3 → workflowforge-2.0.0}/examples/azure_devops/python_ci_scan.py +7 -2
- workflowforge-2.0.0/examples/codebuild/batch/batch_graph.py +39 -0
- workflowforge-2.0.0/examples/codebuild/buildspec.yml +31 -0
- {workflowforge-1.1.3 → workflowforge-2.0.0}/examples/codebuild/node_app.py +6 -1
- {workflowforge-1.1.3 → workflowforge-2.0.0}/examples/github_actions/basic_ci.py +12 -2
- workflowforge-2.0.0/examples/github_actions/basic_ci.yml +26 -0
- workflowforge-2.0.0/examples/github_actions/execution_controls.py +45 -0
- {workflowforge-1.1.3 → workflowforge-2.0.0}/examples/github_actions/python_matrix.py +13 -4
- workflowforge-2.0.0/examples/github_actions/python_matrix.yml +40 -0
- workflowforge-2.0.0/examples/jenkins/Jenkinsfile +36 -0
- {workflowforge-1.1.3 → workflowforge-2.0.0}/examples/jenkins/maven_build.py +6 -1
- {workflowforge-1.1.3 → workflowforge-2.0.0}/pyproject.toml +51 -18
- workflowforge-2.0.0/src/workflowforge/__init__.py +49 -0
- {workflowforge-1.1.3 → workflowforge-2.0.0}/src/workflowforge/azure_devops.py +51 -20
- workflowforge-2.0.0/src/workflowforge/cli.py +298 -0
- {workflowforge-1.1.3 → workflowforge-2.0.0}/src/workflowforge/codebuild.py +169 -58
- workflowforge-2.0.0/src/workflowforge/codebuild_batch.py +92 -0
- workflowforge-2.0.0/src/workflowforge/codebuild_validation.py +219 -0
- workflowforge-2.0.0/src/workflowforge/control_validation.py +211 -0
- workflowforge-2.0.0/src/workflowforge/documentation.py +38 -0
- workflowforge-2.0.0/src/workflowforge/environment.py +31 -0
- workflowforge-2.0.0/src/workflowforge/execution.py +103 -0
- workflowforge-2.0.0/src/workflowforge/execution_validation.py +285 -0
- workflowforge-2.0.0/src/workflowforge/expressions.py +187 -0
- workflowforge-2.0.0/src/workflowforge/generated_header.py +22 -0
- workflowforge-2.0.0/src/workflowforge/github_actions_module.py +133 -0
- {workflowforge-1.1.3 → workflowforge-2.0.0}/src/workflowforge/jenkins.py +81 -25
- workflowforge-2.0.0/src/workflowforge/job.py +144 -0
- workflowforge-2.0.0/src/workflowforge/pinning.py +476 -0
- workflowforge-2.0.0/src/workflowforge/pipeline_validation.py +302 -0
- workflowforge-2.0.0/src/workflowforge/reusable_validation.py +236 -0
- workflowforge-2.0.0/src/workflowforge/reusable_workflows.py +209 -0
- {workflowforge-1.1.3 → workflowforge-2.0.0}/src/workflowforge/schema_validation.py +35 -4
- {workflowforge-1.1.3 → workflowforge-2.0.0}/src/workflowforge/secrets.py +1 -2
- workflowforge-2.0.0/src/workflowforge/security.py +553 -0
- workflowforge-2.0.0/src/workflowforge/step.py +145 -0
- {workflowforge-1.1.3 → workflowforge-2.0.0}/src/workflowforge/strategy.py +19 -9
- {workflowforge-1.1.3 → workflowforge-2.0.0}/src/workflowforge/templates.py +64 -18
- workflowforge-2.0.0/src/workflowforge/trigger_validation.py +265 -0
- workflowforge-2.0.0/src/workflowforge/triggers.py +296 -0
- {workflowforge-1.1.3 → workflowforge-2.0.0}/src/workflowforge/visualization.py +11 -9
- workflowforge-2.0.0/src/workflowforge/workflow.py +270 -0
- workflowforge-2.0.0/src/workflowforge.egg-info/PKG-INFO +686 -0
- {workflowforge-1.1.3 → workflowforge-2.0.0}/src/workflowforge.egg-info/SOURCES.txt +44 -3
- workflowforge-2.0.0/src/workflowforge.egg-info/entry_points.txt +2 -0
- workflowforge-2.0.0/src/workflowforge.egg-info/requires.txt +25 -0
- workflowforge-2.0.0/tests/test_cli.py +286 -0
- {workflowforge-1.1.3 → workflowforge-2.0.0}/tests/test_codebuild.py +2 -2
- workflowforge-2.0.0/tests/test_codebuild_parity.py +647 -0
- workflowforge-2.0.0/tests/test_control_parity.py +441 -0
- workflowforge-2.0.0/tests/test_documentation.py +43 -0
- workflowforge-2.0.0/tests/test_execution_parity.py +476 -0
- workflowforge-2.0.0/tests/test_generated_header.py +104 -0
- {workflowforge-1.1.3 → workflowforge-2.0.0}/tests/test_jenkins.py +1 -1
- workflowforge-2.0.0/tests/test_logging.py +152 -0
- workflowforge-2.0.0/tests/test_pinning.py +350 -0
- workflowforge-2.0.0/tests/test_pipeline_validation.py +195 -0
- workflowforge-2.0.0/tests/test_provider_options.py +295 -0
- workflowforge-2.0.0/tests/test_reusable_workflows.py +553 -0
- workflowforge-2.0.0/tests/test_schema_options.py +150 -0
- workflowforge-2.0.0/tests/test_security.py +379 -0
- {workflowforge-1.1.3 → workflowforge-2.0.0}/tests/test_templates.py +32 -4
- workflowforge-2.0.0/tests/test_trigger_parity.py +349 -0
- {workflowforge-1.1.3 → workflowforge-2.0.0}/tests/test_validation.py +5 -2
- {workflowforge-1.1.3 → workflowforge-2.0.0}/tests/test_workflow.py +3 -3
- workflowforge-2.0.0/tools/markdownlint/package-lock.json +1236 -0
- workflowforge-2.0.0/tools/markdownlint/package.json +13 -0
- workflowforge-2.0.0/tools/markdownlint/run.py +42 -0
- workflowforge-2.0.0/uv.lock +2072 -0
- workflowforge-1.1.3/.github/workflows/publish.yml +0 -142
- workflowforge-1.1.3/CHANGELOG.md +0 -178
- workflowforge-1.1.3/PKG-INFO +0 -480
- workflowforge-1.1.3/README.md +0 -443
- workflowforge-1.1.3/examples/azure_devops/hello_world.yml +0 -13
- workflowforge-1.1.3/examples/codebuild/buildspec.yml +0 -19
- workflowforge-1.1.3/examples/github_actions/basic_ci.yml +0 -14
- workflowforge-1.1.3/examples/github_actions/python_matrix.yml +0 -28
- workflowforge-1.1.3/examples/jenkins/Jenkinsfile +0 -24
- workflowforge-1.1.3/src/workflowforge/__init__.py +0 -20
- workflowforge-1.1.3/src/workflowforge/ai_documentation.py +0 -138
- workflowforge-1.1.3/src/workflowforge/environment.py +0 -25
- workflowforge-1.1.3/src/workflowforge/github_actions_module.py +0 -71
- workflowforge-1.1.3/src/workflowforge/job.py +0 -102
- workflowforge-1.1.3/src/workflowforge/step.py +0 -101
- workflowforge-1.1.3/src/workflowforge/triggers.py +0 -139
- workflowforge-1.1.3/src/workflowforge/workflow.py +0 -199
- workflowforge-1.1.3/src/workflowforge.egg-info/PKG-INFO +0 -480
- workflowforge-1.1.3/src/workflowforge.egg-info/requires.txt +0 -13
- workflowforge-1.1.3/tests/test_ai_documentation.py +0 -143
- {workflowforge-1.1.3 → workflowforge-2.0.0}/.flake8 +0 -0
- {workflowforge-1.1.3 → workflowforge-2.0.0}/.github/ISSUE_TEMPLATE/bug_report.yml +0 -0
- {workflowforge-1.1.3 → workflowforge-2.0.0}/.github/ISSUE_TEMPLATE/config.yml +0 -0
- {workflowforge-1.1.3 → workflowforge-2.0.0}/AUTHORS.md +0 -0
- {workflowforge-1.1.3 → workflowforge-2.0.0}/setup.cfg +0 -0
- {workflowforge-1.1.3 → workflowforge-2.0.0}/setup.py +0 -0
- {workflowforge-1.1.3 → workflowforge-2.0.0}/src/workflowforge/jenkins_plugins.py +0 -0
- {workflowforge-1.1.3 → workflowforge-2.0.0}/src/workflowforge/validation.py +0 -0
- {workflowforge-1.1.3 → workflowforge-2.0.0}/src/workflowforge.egg-info/dependency_links.txt +0 -0
- {workflowforge-1.1.3 → workflowforge-2.0.0}/src/workflowforge.egg-info/top_level.txt +0 -0
- {workflowforge-1.1.3 → workflowforge-2.0.0}/tests/__init__.py +0 -0
- {workflowforge-1.1.3 → workflowforge-2.0.0}/tests/test_secrets.py +0 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
version: 2
|
|
2
|
+
updates:
|
|
3
|
+
- package-ecosystem: uv
|
|
4
|
+
directory: /
|
|
5
|
+
schedule:
|
|
6
|
+
interval: weekly
|
|
7
|
+
- package-ecosystem: npm
|
|
8
|
+
directory: /tools/markdownlint
|
|
9
|
+
schedule:
|
|
10
|
+
interval: weekly
|
|
11
|
+
- package-ecosystem: github-actions
|
|
12
|
+
directory: /
|
|
13
|
+
schedule:
|
|
14
|
+
interval: weekly
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
- [ ] Docstrings added/updated for new functions/classes
|
|
58
58
|
- [ ] README updated if needed
|
|
59
59
|
- [ ] Examples updated if needed
|
|
60
|
-
- [ ]
|
|
60
|
+
- [ ] Conventional Commit describes the change for automatic changelog generation
|
|
61
61
|
|
|
62
62
|
## 🔒 Security & Performance
|
|
63
63
|
|
|
@@ -0,0 +1,245 @@
|
|
|
1
|
+
name: Publish WorkflowForge to PyPI
|
|
2
|
+
on:
|
|
3
|
+
push:
|
|
4
|
+
branches:
|
|
5
|
+
- main
|
|
6
|
+
pull_request:
|
|
7
|
+
branches:
|
|
8
|
+
- main
|
|
9
|
+
workflow_dispatch:
|
|
10
|
+
inputs:
|
|
11
|
+
target:
|
|
12
|
+
description: Release target (testpypi or pypi)
|
|
13
|
+
required: true
|
|
14
|
+
default: testpypi
|
|
15
|
+
type: choice
|
|
16
|
+
options:
|
|
17
|
+
- testpypi
|
|
18
|
+
- pypi
|
|
19
|
+
permissions:
|
|
20
|
+
contents: read
|
|
21
|
+
concurrency:
|
|
22
|
+
group: workflowforge-${{ github.workflow }}-${{ github.ref }}
|
|
23
|
+
cancel-in-progress: false
|
|
24
|
+
jobs:
|
|
25
|
+
test:
|
|
26
|
+
steps:
|
|
27
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
28
|
+
name: Checkout code
|
|
29
|
+
- uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
|
|
30
|
+
name: Set up Python ${{ matrix.python_version }}
|
|
31
|
+
with:
|
|
32
|
+
python-version: ${{ matrix.python_version }}
|
|
33
|
+
- uses: astral-sh/setup-uv@1db35dd8eee11c5894872e0b383ae6c406cf738d # v10.4.0
|
|
34
|
+
with:
|
|
35
|
+
version: "0.13.7"
|
|
36
|
+
- run: uv sync --locked --extra dev --python "${{ matrix.python_version }}"
|
|
37
|
+
name: Install locked dependencies
|
|
38
|
+
- run: uv run --no-sync black --check src/ tests/
|
|
39
|
+
name: Check code formatting
|
|
40
|
+
- run: uv run --no-sync isort --check-only src/ tests/
|
|
41
|
+
name: Check import sorting
|
|
42
|
+
- run: uv run --no-sync flake8 src/ tests/ examples/
|
|
43
|
+
name: Lint with flake8
|
|
44
|
+
- run: uv run --no-sync mypy src/
|
|
45
|
+
name: Type check with mypy
|
|
46
|
+
- run: uv run --no-sync pytest tests/ --cov=workflowforge --cov-branch --cov-fail-under=90 --cov-report=xml
|
|
47
|
+
name: Run tests with coverage
|
|
48
|
+
- run: uv run --no-sync workflowforge compile examples/ --recursive --output-dir "$RUNNER_TEMP/generated"
|
|
49
|
+
name: Compile example pipelines with the CLI
|
|
50
|
+
strategy:
|
|
51
|
+
matrix:
|
|
52
|
+
python_version:
|
|
53
|
+
- '3.13'
|
|
54
|
+
- '3.14'
|
|
55
|
+
- '3.15'
|
|
56
|
+
runs-on: ubuntu-latest
|
|
57
|
+
security:
|
|
58
|
+
steps:
|
|
59
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
60
|
+
name: Checkout code
|
|
61
|
+
- uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
|
|
62
|
+
name: Set up Python
|
|
63
|
+
with:
|
|
64
|
+
python-version: '3.13'
|
|
65
|
+
- uses: astral-sh/setup-uv@1db35dd8eee11c5894872e0b383ae6c406cf738d # v10.4.0
|
|
66
|
+
with:
|
|
67
|
+
version: "0.13.7"
|
|
68
|
+
- run: uv sync --locked --extra dev --python 3.13
|
|
69
|
+
name: Install locked dependencies
|
|
70
|
+
- run: uv run --no-sync bandit -r src/
|
|
71
|
+
name: Security scan with Bandit
|
|
72
|
+
- run: |
|
|
73
|
+
uv export --locked --extra dev --no-emit-project --no-hashes -o "$RUNNER_TEMP/audit-requirements.txt"
|
|
74
|
+
uv run --no-sync pip-audit --disable-pip --no-deps -r "$RUNNER_TEMP/audit-requirements.txt"
|
|
75
|
+
name: Audit Python dependencies
|
|
76
|
+
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
|
|
77
|
+
with:
|
|
78
|
+
node-version: "24"
|
|
79
|
+
- run: npm ci --ignore-scripts --include=dev --no-audit --no-fund
|
|
80
|
+
working-directory: tools/markdownlint
|
|
81
|
+
name: Install locked Markdown tooling
|
|
82
|
+
- run: npm audit --include=dev --audit-level=low
|
|
83
|
+
working-directory: tools/markdownlint
|
|
84
|
+
name: Audit Node dependencies
|
|
85
|
+
runs-on: ubuntu-latest
|
|
86
|
+
build:
|
|
87
|
+
steps:
|
|
88
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
89
|
+
name: Checkout code
|
|
90
|
+
- uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
|
|
91
|
+
name: Set up Python
|
|
92
|
+
with:
|
|
93
|
+
python-version: '3.13'
|
|
94
|
+
- uses: astral-sh/setup-uv@1db35dd8eee11c5894872e0b383ae6c406cf738d # v10.4.0
|
|
95
|
+
with:
|
|
96
|
+
version: "0.13.7"
|
|
97
|
+
- run: uv sync --locked --extra dev --python 3.13
|
|
98
|
+
name: Install locked build tools
|
|
99
|
+
- run: uv run --no-sync python -m build --no-isolation
|
|
100
|
+
name: Build package
|
|
101
|
+
- run: uv run --no-sync twine check dist/*
|
|
102
|
+
name: Verify package metadata
|
|
103
|
+
- uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
|
|
104
|
+
name: Upload build artifacts
|
|
105
|
+
with:
|
|
106
|
+
name: dist
|
|
107
|
+
path: dist/
|
|
108
|
+
needs:
|
|
109
|
+
- test
|
|
110
|
+
- security
|
|
111
|
+
runs-on: ubuntu-latest
|
|
112
|
+
release:
|
|
113
|
+
if: github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/main' && github.event.inputs.target == 'pypi'
|
|
114
|
+
needs: build
|
|
115
|
+
runs-on: ubuntu-latest
|
|
116
|
+
permissions:
|
|
117
|
+
contents: write
|
|
118
|
+
outputs:
|
|
119
|
+
version: ${{ steps.release.outputs.version }}
|
|
120
|
+
tag: ${{ steps.release.outputs.tag }}
|
|
121
|
+
steps:
|
|
122
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
123
|
+
with:
|
|
124
|
+
fetch-depth: 0
|
|
125
|
+
- uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
|
|
126
|
+
with:
|
|
127
|
+
python-version: '3.13'
|
|
128
|
+
- uses: astral-sh/setup-uv@1db35dd8eee11c5894872e0b383ae6c406cf738d # v10.4.0
|
|
129
|
+
with:
|
|
130
|
+
version: "0.13.7"
|
|
131
|
+
- run: uv sync --locked --extra dev --python 3.13
|
|
132
|
+
name: Install locked release tooling
|
|
133
|
+
- name: Create semantic release
|
|
134
|
+
id: release
|
|
135
|
+
env:
|
|
136
|
+
GH_TOKEN: ${{ github.token }}
|
|
137
|
+
shell: bash
|
|
138
|
+
run: |
|
|
139
|
+
set -euo pipefail
|
|
140
|
+
git fetch origin main --tags
|
|
141
|
+
test "$(git rev-parse HEAD)" = "$(git rev-parse origin/main)"
|
|
142
|
+
version=$(uv run --no-sync semantic-release version --print)
|
|
143
|
+
previous=$(uv run --no-sync semantic-release version --print-last-released)
|
|
144
|
+
if [[ "$version" != "$previous" ]]; then
|
|
145
|
+
uv run --no-sync semantic-release version
|
|
146
|
+
fi
|
|
147
|
+
tag="v$version"
|
|
148
|
+
git fetch origin --tags
|
|
149
|
+
git merge-base --is-ancestor "$tag" HEAD
|
|
150
|
+
echo "version=$version" >> "$GITHUB_OUTPUT"
|
|
151
|
+
echo "tag=$tag" >> "$GITHUB_OUTPUT"
|
|
152
|
+
release-build:
|
|
153
|
+
if: always() && github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/main' && needs.build.result == 'success' && ((github.event.inputs.target == 'testpypi' && needs.release.result == 'skipped') || (github.event.inputs.target == 'pypi' && needs.release.result == 'success'))
|
|
154
|
+
needs: [build, release]
|
|
155
|
+
runs-on: ubuntu-latest
|
|
156
|
+
steps:
|
|
157
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
158
|
+
with:
|
|
159
|
+
fetch-depth: 0
|
|
160
|
+
ref: ${{ needs.release.outputs.tag || github.sha }}
|
|
161
|
+
persist-credentials: false
|
|
162
|
+
- uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
|
|
163
|
+
with:
|
|
164
|
+
python-version: '3.13'
|
|
165
|
+
- uses: astral-sh/setup-uv@1db35dd8eee11c5894872e0b383ae6c406cf738d # v10.4.0
|
|
166
|
+
with:
|
|
167
|
+
version: "0.13.7"
|
|
168
|
+
- run: uv sync --locked --extra dev --python 3.13
|
|
169
|
+
name: Install locked dependencies
|
|
170
|
+
- name: Verify release version
|
|
171
|
+
if: github.event.inputs.target == 'pypi'
|
|
172
|
+
env:
|
|
173
|
+
RELEASE_VERSION: ${{ needs.release.outputs.version }}
|
|
174
|
+
run: |
|
|
175
|
+
uv run --no-sync python - <<'PY'
|
|
176
|
+
import os
|
|
177
|
+
import tomllib
|
|
178
|
+
from workflowforge import __version__
|
|
179
|
+
|
|
180
|
+
with open("pyproject.toml", "rb") as file:
|
|
181
|
+
version = tomllib.load(file)["project"]["version"]
|
|
182
|
+
assert version == __version__ == os.environ["RELEASE_VERSION"]
|
|
183
|
+
PY
|
|
184
|
+
- name: Set unique TestPyPI preview version
|
|
185
|
+
if: github.event.inputs.target == 'testpypi'
|
|
186
|
+
run: |
|
|
187
|
+
uv run --no-sync python - <<'PY'
|
|
188
|
+
import os
|
|
189
|
+
import re
|
|
190
|
+
from pathlib import Path
|
|
191
|
+
import tomllib
|
|
192
|
+
|
|
193
|
+
project = Path("pyproject.toml")
|
|
194
|
+
content = project.read_text()
|
|
195
|
+
version = tomllib.loads(content)["project"]["version"]
|
|
196
|
+
preview = f'{version}.dev{os.environ["GITHUB_RUN_ID"]}{os.environ["GITHUB_RUN_ATTEMPT"]}'
|
|
197
|
+
project.write_text(content.replace(f'version = "{version}"', f'version = "{preview}"', 1))
|
|
198
|
+
module = Path("src/workflowforge/__init__.py")
|
|
199
|
+
module.write_text(re.sub(r'__version__ = ".*?"', f'__version__ = "{preview}"', module.read_text()))
|
|
200
|
+
PY
|
|
201
|
+
uv lock
|
|
202
|
+
- run: uv run --locked --extra dev python -m build --no-isolation
|
|
203
|
+
name: Build release package
|
|
204
|
+
- run: uv run --no-sync twine check dist/*
|
|
205
|
+
name: Verify metadata
|
|
206
|
+
- uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
|
|
207
|
+
with:
|
|
208
|
+
name: release-dist
|
|
209
|
+
path: dist/
|
|
210
|
+
if-no-files-found: error
|
|
211
|
+
publish-testpypi:
|
|
212
|
+
if: github.event.inputs.target == 'testpypi'
|
|
213
|
+
needs: release-build
|
|
214
|
+
runs-on: ubuntu-latest
|
|
215
|
+
environment:
|
|
216
|
+
name: testpypi
|
|
217
|
+
url: https://test.pypi.org/p/workflowforge
|
|
218
|
+
permissions:
|
|
219
|
+
id-token: write
|
|
220
|
+
steps:
|
|
221
|
+
- uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
|
|
222
|
+
with:
|
|
223
|
+
name: release-dist
|
|
224
|
+
path: dist/
|
|
225
|
+
- uses: pypa/gh-action-pypi-publish@7245906fb61fa33a13554f9d5fb856fe61758086 # release/v1
|
|
226
|
+
with:
|
|
227
|
+
repository-url: https://test.pypi.org/legacy/
|
|
228
|
+
skip-existing: 'true'
|
|
229
|
+
publish-pypi:
|
|
230
|
+
if: github.event.inputs.target == 'pypi'
|
|
231
|
+
needs: release-build
|
|
232
|
+
runs-on: ubuntu-latest
|
|
233
|
+
environment:
|
|
234
|
+
name: pypi
|
|
235
|
+
url: https://pypi.org/p/workflowforge
|
|
236
|
+
permissions:
|
|
237
|
+
id-token: write
|
|
238
|
+
steps:
|
|
239
|
+
- uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
|
|
240
|
+
with:
|
|
241
|
+
name: release-dist
|
|
242
|
+
path: dist/
|
|
243
|
+
- uses: pypa/gh-action-pypi-publish@7245906fb61fa33a13554f9d5fb856fe61758086 # release/v1
|
|
244
|
+
with:
|
|
245
|
+
skip-existing: 'true'
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
+
ci:
|
|
2
|
+
skip: [markdownlint-fix]
|
|
3
|
+
|
|
1
4
|
repos:
|
|
2
5
|
# Basic file checks
|
|
3
6
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
4
|
-
rev: v6.0.0
|
|
7
|
+
rev: 3e8a8703264a2f4a69428a0aa4dcb512790b2c8c # frozen: v6.0.0
|
|
5
8
|
hooks:
|
|
6
9
|
- id: check-yaml
|
|
7
10
|
- id: end-of-file-fixer
|
|
@@ -9,7 +12,7 @@ repos:
|
|
|
9
12
|
|
|
10
13
|
# Ruff (lints + fixes and formats)
|
|
11
14
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
12
|
-
rev: v0.
|
|
15
|
+
rev: fa1ed65ba95bfa7771a71003a9d74402541f5a5c # frozen: v0.14.6
|
|
13
16
|
hooks:
|
|
14
17
|
- id: ruff-check
|
|
15
18
|
args: ["--fix"]
|
|
@@ -17,7 +20,7 @@ repos:
|
|
|
17
20
|
|
|
18
21
|
# Security scanning (code)
|
|
19
22
|
- repo: https://github.com/PyCQA/bandit
|
|
20
|
-
rev: 1.
|
|
23
|
+
rev: ea0d187d78b2e6365e35f676d2eb9b1be264c091 # frozen: 1.9.2
|
|
21
24
|
hooks:
|
|
22
25
|
- id: bandit
|
|
23
26
|
args: ["-r", "src/"]
|
|
@@ -25,30 +28,34 @@ repos:
|
|
|
25
28
|
|
|
26
29
|
# Markdown formatting
|
|
27
30
|
- repo: https://github.com/executablebooks/mdformat
|
|
28
|
-
rev: 0.
|
|
31
|
+
rev: 82912cdaea4fb830f751504486a7879c70526547 # frozen: 1.0.0
|
|
29
32
|
hooks:
|
|
30
33
|
- id: mdformat
|
|
31
34
|
additional_dependencies:
|
|
32
|
-
- mdformat-mkdocs==
|
|
33
|
-
- mdformat-footnote==0.1.
|
|
35
|
+
- mdformat-mkdocs==5.3.0
|
|
36
|
+
- mdformat-footnote==0.1.3
|
|
34
37
|
|
|
35
38
|
# Markdown linting (auto-fix)
|
|
36
|
-
- repo:
|
|
37
|
-
rev: v0.45.0
|
|
39
|
+
- repo: local
|
|
38
40
|
hooks:
|
|
39
41
|
- id: markdownlint-fix
|
|
40
|
-
|
|
42
|
+
name: markdownlint (locked npm dependencies)
|
|
43
|
+
entry: python3 tools/markdownlint/run.py
|
|
44
|
+
language: system
|
|
45
|
+
types: [markdown]
|
|
46
|
+
require_serial: true
|
|
47
|
+
args: ["--fix", "--config", ".markdownlint.json", "--"]
|
|
41
48
|
|
|
42
49
|
# Conventional commits validation
|
|
43
50
|
- repo: https://github.com/compilerla/conventional-pre-commit
|
|
44
|
-
rev: v4.
|
|
51
|
+
rev: 5c3f3c61b143a94e9ab5d767ff4d0dc9d6801aa3 # frozen: v4.3.0
|
|
45
52
|
hooks:
|
|
46
53
|
- id: conventional-pre-commit
|
|
47
54
|
stages: [commit-msg]
|
|
48
55
|
|
|
49
56
|
# YAML linting for generated examples
|
|
50
57
|
- repo: https://github.com/adrienverge/yamllint
|
|
51
|
-
rev: v1.37.1
|
|
58
|
+
rev: 79a6b2b1392eaf49cdd32ac4f14be1a809bbd8f7 # frozen: v1.37.1
|
|
52
59
|
hooks:
|
|
53
60
|
- id: yamllint
|
|
54
61
|
args: ["--config-data", "{extends: default, rules: {document-start: disable, line-length: {max: 120}, truthy: disable}}"]
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
# WorkflowForge agent instructions
|
|
2
|
+
|
|
3
|
+
Read this file, the relevant provider code, tests, and CONTRIBUTING.md before
|
|
4
|
+
changing the repository. Follow the repository's existing contracts and the
|
|
5
|
+
user's explicit scope.
|
|
6
|
+
|
|
7
|
+
## Required engineering workflow
|
|
8
|
+
|
|
9
|
+
1. Research the current official provider documentation before designing or
|
|
10
|
+
changing a feature. Record the relevant URLs and supported syntax in the
|
|
11
|
+
implementation notes or provider coverage matrix. Prefer upstream references
|
|
12
|
+
over third-party examples; do not invent undocumented syntax.
|
|
13
|
+
1. Analyze the existing models, serializers, CLI, validation, security
|
|
14
|
+
diagnostics, documentation, and tests. Identify compatibility constraints
|
|
15
|
+
and gaps before writing code.
|
|
16
|
+
1. Implement the smallest coherent, typed solution. Support native provider
|
|
17
|
+
semantics rather than merely accepting arbitrary configuration dictionaries.
|
|
18
|
+
1. Add positive, negative, and regression tests. Exercise the public API,
|
|
19
|
+
native output, strict validation, and relevant examples.
|
|
20
|
+
1. Perform a separate senior engineering review of the complete diff against
|
|
21
|
+
the official specification. Check correctness, edge cases, compatibility,
|
|
22
|
+
security, maintainability, test evidence, and documentation. Resolve findings
|
|
23
|
+
and repeat relevant checks before committing. Distinguish local review from
|
|
24
|
+
an independently obtained external review.
|
|
25
|
+
1. Commit reviewed, tested changes using scoped Conventional Commits. Report
|
|
26
|
+
actual test results, remaining gaps, and any unverified provider behavior.
|
|
27
|
+
Do not merge branches, publish packages, or create releases without explicit
|
|
28
|
+
authorization.
|
|
29
|
+
|
|
30
|
+
## Provider references and parity
|
|
31
|
+
|
|
32
|
+
- [AWS CodeBuild buildspec](https://docs.aws.amazon.com/codebuild/latest/userguide/build-spec-ref.html)
|
|
33
|
+
and [batch buildspec](https://docs.aws.amazon.com/codebuild/latest/userguide/batch-build-buildspec.html).
|
|
34
|
+
- [GitHub Actions workflow syntax](https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax).
|
|
35
|
+
- [Jenkins Declarative Pipeline syntax](https://www.jenkins.io/doc/book/pipeline/syntax/).
|
|
36
|
+
- [Azure Pipelines YAML schema](https://learn.microsoft.com/en-us/azure/devops/pipelines/yaml-schema/).
|
|
37
|
+
|
|
38
|
+
Maintain a separate branch and PR for each provider. Measure feature parity
|
|
39
|
+
against a named, explicit inventory of native configuration capabilities with
|
|
40
|
+
evidence for each supported item. Target at least 90% per provider; do not
|
|
41
|
+
confuse feature parity with test coverage or count an untyped escape hatch as
|
|
42
|
+
full typed support. Document exclusions (for example, provisioning APIs,
|
|
43
|
+
arbitrary scripted Groovy, and third-party plugins or tasks), limitations, and
|
|
44
|
+
provider acceptance that has not been verified against a live service.
|
|
45
|
+
|
|
46
|
+
## Architecture and security
|
|
47
|
+
|
|
48
|
+
- Keep Python definitions as the source of truth. Preserve deterministic native
|
|
49
|
+
output and the common generated-file ASCII header.
|
|
50
|
+
- Use explicit Pydantic models and type annotations, with snake_case Python API
|
|
51
|
+
names and exact provider-native serialization keys. Preserve existing public
|
|
52
|
+
APIs and meaningful false, zero, and empty values where the provider allows them.
|
|
53
|
+
- Do not silently discard valid user configuration or change provider semantics.
|
|
54
|
+
Use the common structured validation contract for offline checks. Strict CLI
|
|
55
|
+
compilation and strict saves must reject errors and warnings before writing.
|
|
56
|
+
- Integrate new executable fields, secret-bearing settings, image references,
|
|
57
|
+
and nested structures with preventive security and dependency-pinning checks.
|
|
58
|
+
Keep diagnostics safe: do not emit secret values, execute generated commands,
|
|
59
|
+
or make network requests during serialization or validation.
|
|
60
|
+
- Compile only trusted Python source; the CLI is not a sandbox.
|
|
61
|
+
- Prefer the existing dependencies and architecture. Keep changes focused and
|
|
62
|
+
avoid unrelated refactors, generated diagrams, or dependency churn.
|
|
63
|
+
|
|
64
|
+
## Quality gates
|
|
65
|
+
|
|
66
|
+
- Support only the latest three stable Python minor versions (rolling N-2);
|
|
67
|
+
currently 3.13, 3.14, and 3.15.
|
|
68
|
+
- English only: code identifiers, comments, docstrings, messages, logs, tests,
|
|
69
|
+
examples, documentation, commits, PRs, and review findings. Translate legacy
|
|
70
|
+
Spanish text when touching it. Keep imports grouped and sorted. Follow Black,
|
|
71
|
+
isort, Ruff, and mypy conventions.
|
|
72
|
+
- Sync the locked development environment for each supported Python version
|
|
73
|
+
before testing. Run the full test suite with branch coverage of at least 90%,
|
|
74
|
+
mypy, and all pre-commit hooks. Do not weaken tests, disable checks, or exclude
|
|
75
|
+
production code to meet the threshold.
|
|
76
|
+
- Run relevant example compilation and compare output to the native syntax.
|
|
77
|
+
Keep examples and README documentation consistent with the public API.
|
|
78
|
+
- Follow CONTRIBUTING.md for additional lint, security, build, and packaging
|
|
79
|
+
checks. Record failures and blockers rather than claiming a pass.
|
|
80
|
+
|
|
81
|
+
```bash
|
|
82
|
+
uv sync --locked --extra dev --python 3.13
|
|
83
|
+
uv run --no-sync pytest tests/ --cov=workflowforge --cov-branch --cov-fail-under=90
|
|
84
|
+
uv run --no-sync mypy src/
|
|
85
|
+
uv run --no-sync pre-commit run --all-files
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
Repeat the test and type-check commands with isolated, synchronized environments
|
|
89
|
+
for the other supported Python versions. Use semantic release to manage package
|
|
90
|
+
versions and CHANGELOG.md; never edit them manually.
|