workflowforge 1.1.2__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/ISSUE_TEMPLATE/bug_report.yml +84 -0
- workflowforge-2.0.0/.github/ISSUE_TEMPLATE/config.yml +8 -0
- workflowforge-2.0.0/.github/dependabot.yml +14 -0
- {workflowforge-1.1.2 → workflowforge-2.0.0}/.github/pull_request_template.md +26 -4
- workflowforge-2.0.0/.github/workflows/publish.yml +245 -0
- {workflowforge-1.1.2 → workflowforge-2.0.0}/.gitignore +5 -2
- workflowforge-2.0.0/.markdownlint.json +7 -0
- {workflowforge-1.1.2 → 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-2.0.0/CODE_OF_CONDUCT.md +54 -0
- workflowforge-2.0.0/CONTRIBUTING.md +95 -0
- workflowforge-2.0.0/LICENSE +661 -0
- {workflowforge-1.1.2 → workflowforge-2.0.0}/MANIFEST.in +1 -0
- workflowforge-1.1.2/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.2 → workflowforge-2.0.0}/README_PRECOMMIT.md +2 -0
- workflowforge-2.0.0/SECURITY.md +33 -0
- 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.2 → workflowforge-2.0.0}/examples/README.md +13 -10
- {workflowforge-1.1.2 → 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.2 → workflowforge-2.0.0}/examples/azure_devops/python_ci.py +7 -2
- {workflowforge-1.1.2 → workflowforge-2.0.0}/examples/azure_devops/python_ci.yml +31 -19
- {workflowforge-1.1.2 → 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.2 → workflowforge-2.0.0}/examples/codebuild/node_app.py +6 -1
- {workflowforge-1.1.2 → 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.2 → 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.2 → workflowforge-2.0.0}/examples/jenkins/maven_build.py +6 -1
- {workflowforge-1.1.2 → workflowforge-2.0.0}/pyproject.toml +51 -18
- {workflowforge-1.1.2 → workflowforge-2.0.0}/setup.py +1 -1
- workflowforge-2.0.0/src/workflowforge/__init__.py +49 -0
- {workflowforge-1.1.2 → workflowforge-2.0.0}/src/workflowforge/azure_devops.py +51 -20
- workflowforge-2.0.0/src/workflowforge/cli.py +298 -0
- {workflowforge-1.1.2 → 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.2 → 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-2.0.0/src/workflowforge/schema_validation.py +217 -0
- {workflowforge-1.1.2 → 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.2 → workflowforge-2.0.0}/src/workflowforge/strategy.py +19 -9
- {workflowforge-1.1.2 → 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.2 → workflowforge-2.0.0}/src/workflowforge/visualization.py +13 -12
- 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.2 → workflowforge-2.0.0}/src/workflowforge.egg-info/SOURCES.txt +49 -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.2 → 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.2 → 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-2.0.0/tests/test_templates.py +84 -0
- workflowforge-2.0.0/tests/test_trigger_parity.py +349 -0
- {workflowforge-1.1.2 → workflowforge-2.0.0}/tests/test_validation.py +5 -2
- {workflowforge-1.1.2 → 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.2/.github/workflows/publish.yml +0 -142
- workflowforge-1.1.2/CHANGELOG.md +0 -168
- workflowforge-1.1.2/PKG-INFO +0 -480
- workflowforge-1.1.2/README.md +0 -443
- workflowforge-1.1.2/examples/azure_devops/hello_world.yml +0 -13
- workflowforge-1.1.2/examples/codebuild/buildspec.yml +0 -19
- workflowforge-1.1.2/examples/github_actions/basic_ci.yml +0 -14
- workflowforge-1.1.2/examples/github_actions/python_matrix.yml +0 -28
- workflowforge-1.1.2/examples/jenkins/Jenkinsfile +0 -24
- workflowforge-1.1.2/src/workflowforge/__init__.py +0 -20
- workflowforge-1.1.2/src/workflowforge/ai_documentation.py +0 -138
- workflowforge-1.1.2/src/workflowforge/environment.py +0 -25
- workflowforge-1.1.2/src/workflowforge/github_actions_module.py +0 -71
- workflowforge-1.1.2/src/workflowforge/job.py +0 -102
- workflowforge-1.1.2/src/workflowforge/schema_validation.py +0 -138
- workflowforge-1.1.2/src/workflowforge/step.py +0 -101
- workflowforge-1.1.2/src/workflowforge/triggers.py +0 -139
- workflowforge-1.1.2/src/workflowforge/workflow.py +0 -199
- workflowforge-1.1.2/src/workflowforge.egg-info/PKG-INFO +0 -480
- workflowforge-1.1.2/src/workflowforge.egg-info/requires.txt +0 -13
- workflowforge-1.1.2/tests/test_ai_documentation.py +0 -143
- workflowforge-1.1.2/tests/test_templates.py +0 -54
- {workflowforge-1.1.2 → workflowforge-2.0.0}/.flake8 +0 -0
- {workflowforge-1.1.2 → workflowforge-2.0.0}/AUTHORS.md +0 -0
- {workflowforge-1.1.2 → workflowforge-2.0.0}/setup.cfg +0 -0
- {workflowforge-1.1.2 → workflowforge-2.0.0}/src/workflowforge/jenkins_plugins.py +0 -0
- {workflowforge-1.1.2 → workflowforge-2.0.0}/src/workflowforge/validation.py +0 -0
- {workflowforge-1.1.2 → workflowforge-2.0.0}/src/workflowforge.egg-info/dependency_links.txt +0 -0
- {workflowforge-1.1.2 → workflowforge-2.0.0}/src/workflowforge.egg-info/top_level.txt +0 -0
- {workflowforge-1.1.2 → workflowforge-2.0.0}/tests/__init__.py +0 -0
- {workflowforge-1.1.2 → workflowforge-2.0.0}/tests/test_secrets.py +0 -0
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
name: Bug Report
|
|
2
|
+
description: File a bug report to help us improve WorkflowForge
|
|
3
|
+
labels: [bug]
|
|
4
|
+
title: "bug: "
|
|
5
|
+
body:
|
|
6
|
+
- type: markdown
|
|
7
|
+
attributes:
|
|
8
|
+
value: |
|
|
9
|
+
Thanks for taking the time to report an issue. Please fill out all required sections so we can triage quickly.
|
|
10
|
+
- type: input
|
|
11
|
+
id: summary
|
|
12
|
+
attributes:
|
|
13
|
+
label: Summary
|
|
14
|
+
description: Provide a concise description of the problem.
|
|
15
|
+
placeholder: Feature X fails when...
|
|
16
|
+
validations:
|
|
17
|
+
required: true
|
|
18
|
+
- type: textarea
|
|
19
|
+
id: steps
|
|
20
|
+
attributes:
|
|
21
|
+
label: Steps To Reproduce
|
|
22
|
+
description: List each action in order. Include command outputs or logs when helpful.
|
|
23
|
+
placeholder: |
|
|
24
|
+
1. ...
|
|
25
|
+
2. ...
|
|
26
|
+
3. ...
|
|
27
|
+
validations:
|
|
28
|
+
required: true
|
|
29
|
+
- type: textarea
|
|
30
|
+
id: expected
|
|
31
|
+
attributes:
|
|
32
|
+
label: Expected Behavior
|
|
33
|
+
description: What did you expect to happen?
|
|
34
|
+
validations:
|
|
35
|
+
required: true
|
|
36
|
+
- type: textarea
|
|
37
|
+
id: actual
|
|
38
|
+
attributes:
|
|
39
|
+
label: Actual Behavior
|
|
40
|
+
description: What actually happened? Attach stack traces or screenshots if relevant.
|
|
41
|
+
validations:
|
|
42
|
+
required: true
|
|
43
|
+
- type: input
|
|
44
|
+
id: version
|
|
45
|
+
attributes:
|
|
46
|
+
label: WorkflowForge Version
|
|
47
|
+
description: Provide the exact version (e.g., 1.1.3). Run `python -c "import workflowforge; print(workflowforge.__version__)"`.
|
|
48
|
+
validations:
|
|
49
|
+
required: true
|
|
50
|
+
- type: dropdown
|
|
51
|
+
id: environment
|
|
52
|
+
attributes:
|
|
53
|
+
label: Runtime Environment
|
|
54
|
+
description: Where did you observe the issue?
|
|
55
|
+
options:
|
|
56
|
+
- GitHub Actions
|
|
57
|
+
- AWS CodeBuild
|
|
58
|
+
- Azure DevOps
|
|
59
|
+
- Jenkins
|
|
60
|
+
- Local environment
|
|
61
|
+
- Other
|
|
62
|
+
validations:
|
|
63
|
+
required: true
|
|
64
|
+
- type: textarea
|
|
65
|
+
id: environment-details
|
|
66
|
+
attributes:
|
|
67
|
+
label: Environment Details
|
|
68
|
+
description: Include OS, Python version, and relevant configuration snippets.
|
|
69
|
+
- type: checkboxes
|
|
70
|
+
id: validations
|
|
71
|
+
attributes:
|
|
72
|
+
label: Pre-Submission Checklist
|
|
73
|
+
options:
|
|
74
|
+
- label: I reproduced the issue on the latest `main` branch.
|
|
75
|
+
required: true
|
|
76
|
+
- label: I searched existing issues and discussions to avoid duplicates.
|
|
77
|
+
required: true
|
|
78
|
+
- label: I ran `black --check`, `flake8`, `mypy`, and `pytest` where applicable.
|
|
79
|
+
required: true
|
|
80
|
+
- type: textarea
|
|
81
|
+
id: extra
|
|
82
|
+
attributes:
|
|
83
|
+
label: Additional Context
|
|
84
|
+
description: Anything else we should know?
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
blank_issues_enabled: false
|
|
2
|
+
contact_links:
|
|
3
|
+
- name: Security Vulnerability
|
|
4
|
+
url: https://github.com/brainynimbus/workflowforge/security/policy
|
|
5
|
+
about: Please report security vulnerabilities through our coordinated disclosure program.
|
|
6
|
+
- name: Questions & Discussions
|
|
7
|
+
url: https://github.com/brainynimbus/workflowforge/discussions
|
|
8
|
+
about: For usage questions or ideas, start a discussion thread instead of opening an issue.
|
|
@@ -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
|
|
@@ -1,16 +1,21 @@
|
|
|
1
1
|
# Pull Request
|
|
2
2
|
|
|
3
3
|
## 📋 PR Summary
|
|
4
|
+
|
|
4
5
|
<!-- Provide a brief description of the changes in this PR -->
|
|
5
6
|
|
|
6
7
|
### Related Issues
|
|
8
|
+
|
|
7
9
|
<!-- Link any related issues using keywords like "Fixes #123", "Closes #456", "Resolves #789" -->
|
|
10
|
+
|
|
8
11
|
- Fixes #
|
|
9
12
|
- Closes #
|
|
10
13
|
- Resolves #
|
|
11
14
|
|
|
12
15
|
### Type of Change
|
|
16
|
+
|
|
13
17
|
<!-- Check the type of change your PR introduces -->
|
|
18
|
+
|
|
14
19
|
- [ ] 🐛 Bug fix (non-breaking change that fixes an issue)
|
|
15
20
|
- [ ] ✨ New feature (non-breaking change that adds functionality)
|
|
16
21
|
- [ ] 💥 Breaking change (fix or feature that would cause existing functionality to not work as expected)
|
|
@@ -21,16 +26,21 @@
|
|
|
21
26
|
- [ ] 🔨 Build/CI changes
|
|
22
27
|
|
|
23
28
|
## 🔍 What Changed
|
|
29
|
+
|
|
24
30
|
<!-- Describe the changes in detail -->
|
|
25
31
|
|
|
26
32
|
### Before
|
|
33
|
+
|
|
27
34
|
<!-- Describe the behavior before this change -->
|
|
28
35
|
|
|
29
36
|
### After
|
|
37
|
+
|
|
30
38
|
<!-- Describe the behavior after this change -->
|
|
31
39
|
|
|
32
40
|
## 🧪 Testing
|
|
41
|
+
|
|
33
42
|
<!-- Describe how you tested your changes -->
|
|
43
|
+
|
|
34
44
|
- [ ] Unit tests pass (`pytest tests/`)
|
|
35
45
|
- [ ] Code quality checks pass (`black`, `isort`, `flake8`, `mypy`)
|
|
36
46
|
- [ ] Security scan passes (`bandit`)
|
|
@@ -38,26 +48,32 @@
|
|
|
38
48
|
- [ ] Examples work correctly
|
|
39
49
|
|
|
40
50
|
### Test Evidence
|
|
51
|
+
|
|
41
52
|
<!-- Provide evidence of testing (screenshots, logs, etc.) -->
|
|
42
53
|
|
|
43
54
|
## 📚 Documentation
|
|
55
|
+
|
|
44
56
|
- [ ] Code is self-documenting with clear variable/function names
|
|
45
57
|
- [ ] Docstrings added/updated for new functions/classes
|
|
46
58
|
- [ ] README updated if needed
|
|
47
59
|
- [ ] Examples updated if needed
|
|
48
|
-
- [ ]
|
|
60
|
+
- [ ] Conventional Commit describes the change for automatic changelog generation
|
|
49
61
|
|
|
50
62
|
## 🔒 Security & Performance
|
|
63
|
+
|
|
51
64
|
- [ ] No sensitive data exposed (credentials, tokens, etc.)
|
|
52
65
|
- [ ] No performance regressions introduced
|
|
53
66
|
- [ ] Dependencies are secure and up-to-date
|
|
54
67
|
- [ ] Error handling is appropriate
|
|
55
68
|
|
|
56
69
|
## 🎯 Reviewer Guidance
|
|
70
|
+
|
|
57
71
|
<!-- Help reviewers understand what to focus on -->
|
|
58
72
|
|
|
59
73
|
### Focus Areas
|
|
74
|
+
|
|
60
75
|
<!-- What should reviewers pay special attention to? -->
|
|
76
|
+
|
|
61
77
|
- [ ] Logic correctness
|
|
62
78
|
- [ ] Error handling
|
|
63
79
|
- [ ] Performance impact
|
|
@@ -66,20 +82,26 @@
|
|
|
66
82
|
- [ ] Documentation clarity
|
|
67
83
|
|
|
68
84
|
### Testing Instructions
|
|
85
|
+
|
|
69
86
|
<!-- Step-by-step instructions for reviewers to test your changes -->
|
|
87
|
+
|
|
88
|
+
1.
|
|
89
|
+
1.
|
|
70
90
|
1.
|
|
71
|
-
2.
|
|
72
|
-
3.
|
|
73
91
|
|
|
74
92
|
## 📦 Deployment Notes
|
|
93
|
+
|
|
75
94
|
<!-- Any special considerations for deployment -->
|
|
95
|
+
|
|
76
96
|
- [ ] No database migrations required
|
|
77
97
|
- [ ] No configuration changes required
|
|
78
98
|
- [ ] Backward compatible
|
|
79
99
|
- [ ] Safe to deploy immediately
|
|
80
100
|
|
|
81
101
|
## ✅ Pre-Merge Checklist
|
|
102
|
+
|
|
82
103
|
<!-- All items must be checked before merge -->
|
|
104
|
+
|
|
83
105
|
- [ ] PR title follows [Conventional Commits](https://www.conventionalcommits.org/) format
|
|
84
106
|
- [ ] All CI checks are passing
|
|
85
107
|
- [ ] Code has been reviewed and approved
|
|
@@ -87,6 +109,6 @@
|
|
|
87
109
|
- [ ] Branch is up to date with target branch
|
|
88
110
|
- [ ] All conversations resolved
|
|
89
111
|
|
|
90
|
-
|
|
112
|
+
______________________________________________________________________
|
|
91
113
|
|
|
92
114
|
**Note for Reviewers:** Please ensure all checklist items are completed before approving. Use "Request Changes" if any items are missing or if you have concerns.
|
|
@@ -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'
|
|
@@ -121,9 +121,9 @@ celerybeat.pid
|
|
|
121
121
|
|
|
122
122
|
# Environments
|
|
123
123
|
.env
|
|
124
|
-
.venv
|
|
124
|
+
.venv*
|
|
125
125
|
env/
|
|
126
|
-
venv
|
|
126
|
+
venv
|
|
127
127
|
ENV/
|
|
128
128
|
env.bak/
|
|
129
129
|
venv.bak/
|
|
@@ -200,3 +200,6 @@ create_*pipeline*.py
|
|
|
200
200
|
*workflow*.png
|
|
201
201
|
*pipeline*.png
|
|
202
202
|
*codebuild*.png
|
|
203
|
+
|
|
204
|
+
# Locked development-only Node tooling
|
|
205
|
+
node_modules/
|
|
@@ -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:
|
|
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:
|
|
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.
|
|
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.
|