workflowforge 1.1.0__tar.gz → 1.1.2__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-1.1.0 → workflowforge-1.1.2}/.pre-commit-config.yaml +27 -36
- {workflowforge-1.1.0 → workflowforge-1.1.2}/CHANGELOG.md +41 -9
- {workflowforge-1.1.0 → workflowforge-1.1.2}/PKG-INFO +97 -47
- {workflowforge-1.1.0 → workflowforge-1.1.2}/README.md +96 -46
- {workflowforge-1.1.0 → workflowforge-1.1.2}/examples/README.md +14 -6
- workflowforge-1.1.2/examples/azure_devops/python_ci_scan.py +23 -0
- {workflowforge-1.1.0 → workflowforge-1.1.2}/pyproject.toml +1 -1
- {workflowforge-1.1.0 → workflowforge-1.1.2}/src/workflowforge/__init__.py +1 -1
- {workflowforge-1.1.0 → workflowforge-1.1.2}/src/workflowforge/azure_devops.py +36 -1
- {workflowforge-1.1.0 → workflowforge-1.1.2}/src/workflowforge/workflow.py +38 -0
- {workflowforge-1.1.0 → workflowforge-1.1.2}/src/workflowforge.egg-info/PKG-INFO +97 -47
- {workflowforge-1.1.0 → workflowforge-1.1.2}/src/workflowforge.egg-info/SOURCES.txt +1 -2
- workflowforge-1.1.0/RELEASE_NOTES_v1.0.0.md +0 -35
- workflowforge-1.1.0/RELEASE_NOTES_v1.1.0.md +0 -25
- {workflowforge-1.1.0 → workflowforge-1.1.2}/.flake8 +0 -0
- {workflowforge-1.1.0 → workflowforge-1.1.2}/.github/pull_request_template.md +0 -0
- {workflowforge-1.1.0 → workflowforge-1.1.2}/.github/workflows/publish.yml +0 -0
- {workflowforge-1.1.0 → workflowforge-1.1.2}/.gitignore +0 -0
- {workflowforge-1.1.0 → workflowforge-1.1.2}/AUTHORS.md +0 -0
- {workflowforge-1.1.0 → workflowforge-1.1.2}/LICENSE +0 -0
- {workflowforge-1.1.0 → workflowforge-1.1.2}/MANIFEST.in +0 -0
- {workflowforge-1.1.0 → workflowforge-1.1.2}/README_PRECOMMIT.md +0 -0
- {workflowforge-1.1.0 → workflowforge-1.1.2}/examples/azure_devops/hello_world.py +0 -0
- {workflowforge-1.1.0 → workflowforge-1.1.2}/examples/azure_devops/hello_world.yml +0 -0
- {workflowforge-1.1.0 → workflowforge-1.1.2}/examples/azure_devops/python_ci.py +0 -0
- {workflowforge-1.1.0 → workflowforge-1.1.2}/examples/azure_devops/python_ci.yml +0 -0
- {workflowforge-1.1.0 → workflowforge-1.1.2}/examples/codebuild/buildspec.yml +0 -0
- {workflowforge-1.1.0 → workflowforge-1.1.2}/examples/codebuild/node_app.py +0 -0
- {workflowforge-1.1.0 → workflowforge-1.1.2}/examples/github_actions/basic_ci.py +0 -0
- {workflowforge-1.1.0 → workflowforge-1.1.2}/examples/github_actions/basic_ci.yml +0 -0
- {workflowforge-1.1.0 → workflowforge-1.1.2}/examples/github_actions/python_matrix.py +0 -0
- {workflowforge-1.1.0 → workflowforge-1.1.2}/examples/github_actions/python_matrix.yml +0 -0
- {workflowforge-1.1.0 → workflowforge-1.1.2}/examples/jenkins/Jenkinsfile +0 -0
- {workflowforge-1.1.0 → workflowforge-1.1.2}/examples/jenkins/maven_build.py +0 -0
- {workflowforge-1.1.0 → workflowforge-1.1.2}/setup.cfg +0 -0
- {workflowforge-1.1.0 → workflowforge-1.1.2}/setup.py +0 -0
- {workflowforge-1.1.0 → workflowforge-1.1.2}/src/workflowforge/ai_documentation.py +0 -0
- {workflowforge-1.1.0 → workflowforge-1.1.2}/src/workflowforge/codebuild.py +0 -0
- {workflowforge-1.1.0 → workflowforge-1.1.2}/src/workflowforge/environment.py +0 -0
- {workflowforge-1.1.0 → workflowforge-1.1.2}/src/workflowforge/github_actions_module.py +0 -0
- {workflowforge-1.1.0 → workflowforge-1.1.2}/src/workflowforge/jenkins.py +0 -0
- {workflowforge-1.1.0 → workflowforge-1.1.2}/src/workflowforge/jenkins_plugins.py +0 -0
- {workflowforge-1.1.0 → workflowforge-1.1.2}/src/workflowforge/job.py +0 -0
- {workflowforge-1.1.0 → workflowforge-1.1.2}/src/workflowforge/schema_validation.py +0 -0
- {workflowforge-1.1.0 → workflowforge-1.1.2}/src/workflowforge/secrets.py +0 -0
- {workflowforge-1.1.0 → workflowforge-1.1.2}/src/workflowforge/step.py +0 -0
- {workflowforge-1.1.0 → workflowforge-1.1.2}/src/workflowforge/strategy.py +0 -0
- {workflowforge-1.1.0 → workflowforge-1.1.2}/src/workflowforge/templates.py +0 -0
- {workflowforge-1.1.0 → workflowforge-1.1.2}/src/workflowforge/triggers.py +0 -0
- {workflowforge-1.1.0 → workflowforge-1.1.2}/src/workflowforge/validation.py +0 -0
- {workflowforge-1.1.0 → workflowforge-1.1.2}/src/workflowforge/visualization.py +0 -0
- {workflowforge-1.1.0 → workflowforge-1.1.2}/src/workflowforge.egg-info/dependency_links.txt +0 -0
- {workflowforge-1.1.0 → workflowforge-1.1.2}/src/workflowforge.egg-info/requires.txt +0 -0
- {workflowforge-1.1.0 → workflowforge-1.1.2}/src/workflowforge.egg-info/top_level.txt +0 -0
- {workflowforge-1.1.0 → workflowforge-1.1.2}/tests/__init__.py +0 -0
- {workflowforge-1.1.0 → workflowforge-1.1.2}/tests/test_ai_documentation.py +0 -0
- {workflowforge-1.1.0 → workflowforge-1.1.2}/tests/test_codebuild.py +0 -0
- {workflowforge-1.1.0 → workflowforge-1.1.2}/tests/test_jenkins.py +0 -0
- {workflowforge-1.1.0 → workflowforge-1.1.2}/tests/test_secrets.py +0 -0
- {workflowforge-1.1.0 → workflowforge-1.1.2}/tests/test_templates.py +0 -0
- {workflowforge-1.1.0 → workflowforge-1.1.2}/tests/test_validation.py +0 -0
- {workflowforge-1.1.0 → workflowforge-1.1.2}/tests/test_workflow.py +0 -0
|
@@ -1,32 +1,21 @@
|
|
|
1
1
|
repos:
|
|
2
2
|
# Basic file checks
|
|
3
3
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
4
|
-
rev:
|
|
4
|
+
rev: v5.0.0
|
|
5
5
|
hooks:
|
|
6
|
-
- id: trailing-whitespace
|
|
7
|
-
- id: end-of-file-fixer
|
|
8
6
|
- id: check-yaml
|
|
9
|
-
- id:
|
|
10
|
-
- id:
|
|
11
|
-
- id: check-toml
|
|
12
|
-
- id: debug-statements
|
|
13
|
-
- id: mixed-line-ending
|
|
14
|
-
|
|
15
|
-
# Python code formatting
|
|
16
|
-
- repo: https://github.com/psf/black
|
|
17
|
-
rev: 25.1.0
|
|
18
|
-
hooks:
|
|
19
|
-
- id: black
|
|
20
|
-
language_version: python3
|
|
7
|
+
- id: end-of-file-fixer
|
|
8
|
+
- id: trailing-whitespace
|
|
21
9
|
|
|
22
|
-
#
|
|
23
|
-
- repo: https://github.com/
|
|
24
|
-
rev:
|
|
10
|
+
# Ruff (lints + fixes and formats)
|
|
11
|
+
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
12
|
+
rev: v0.12.0
|
|
25
13
|
hooks:
|
|
26
|
-
- id:
|
|
27
|
-
args: ["--
|
|
14
|
+
- id: ruff-check
|
|
15
|
+
args: ["--fix"]
|
|
16
|
+
- id: ruff-format
|
|
28
17
|
|
|
29
|
-
# Security scanning
|
|
18
|
+
# Security scanning (code)
|
|
30
19
|
- repo: https://github.com/PyCQA/bandit
|
|
31
20
|
rev: 1.8.6
|
|
32
21
|
hooks:
|
|
@@ -34,6 +23,22 @@ repos:
|
|
|
34
23
|
args: ["-r", "src/"]
|
|
35
24
|
exclude: tests/
|
|
36
25
|
|
|
26
|
+
# Markdown formatting
|
|
27
|
+
- repo: https://github.com/executablebooks/mdformat
|
|
28
|
+
rev: 0.7.22
|
|
29
|
+
hooks:
|
|
30
|
+
- id: mdformat
|
|
31
|
+
additional_dependencies:
|
|
32
|
+
- mdformat-mkdocs==4.0.0
|
|
33
|
+
- mdformat-footnote==0.1.1
|
|
34
|
+
|
|
35
|
+
# Markdown linting (auto-fix)
|
|
36
|
+
- repo: https://github.com/igorshubovych/markdownlint-cli
|
|
37
|
+
rev: v0.45.0
|
|
38
|
+
hooks:
|
|
39
|
+
- id: markdownlint-fix
|
|
40
|
+
args: ["--disable", "MD013,MD024"]
|
|
41
|
+
|
|
37
42
|
# Conventional commits validation
|
|
38
43
|
- repo: https://github.com/compilerla/conventional-pre-commit
|
|
39
44
|
rev: v3.4.0
|
|
@@ -41,21 +46,7 @@ repos:
|
|
|
41
46
|
- id: conventional-pre-commit
|
|
42
47
|
stages: [commit-msg]
|
|
43
48
|
|
|
44
|
-
#
|
|
45
|
-
- repo: https://github.com/pycqa/flake8
|
|
46
|
-
rev: 7.1.1
|
|
47
|
-
hooks:
|
|
48
|
-
- id: flake8
|
|
49
|
-
args: ["--max-line-length=88", "--extend-ignore=E203,W503"]
|
|
50
|
-
|
|
51
|
-
# Upgrade Python syntax
|
|
52
|
-
- repo: https://github.com/asottile/pyupgrade
|
|
53
|
-
rev: v3.19.0
|
|
54
|
-
hooks:
|
|
55
|
-
- id: pyupgrade
|
|
56
|
-
args: [--py311-plus]
|
|
57
|
-
|
|
58
|
-
# YAML linting
|
|
49
|
+
# YAML linting for generated examples
|
|
59
50
|
- repo: https://github.com/adrienverge/yamllint
|
|
60
51
|
rev: v1.35.1
|
|
61
52
|
hooks:
|
|
@@ -1,52 +1,67 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
All notable changes to WorkflowForge will be documented in this file.
|
|
4
|
+
|
|
5
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
|
+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
|
+
|
|
8
|
+
## [1.1.2] - 2025-08-30
|
|
9
|
+
|
|
10
|
+
### Changed
|
|
11
|
+
|
|
12
|
+
- README: update usage guide and examples; clarified AI docs and visualization sections
|
|
13
|
+
- Policy: reinforce English-only for code, docs, and commits
|
|
14
|
+
|
|
3
15
|
## [1.1.0] - 2025-08-29
|
|
4
16
|
|
|
5
17
|
### Added
|
|
18
|
+
|
|
6
19
|
- Azure DevOps YAML support (`workflowforge.azure_devops`): pipeline/job/steps/task modeling and YAML emitter
|
|
7
20
|
- Python CI template for Azure Pipelines with multi-OS matrix (Ubuntu/Windows/macOS) and pip caching via Cache@2
|
|
8
21
|
- Minimal Azure DevOps hello-world template and examples under `examples/azure_devops/`
|
|
9
22
|
|
|
10
23
|
### Changed
|
|
24
|
+
|
|
11
25
|
- Exported `azure_devops` from public API for `from workflowforge import azure_devops`
|
|
12
26
|
- Consistent YAML indentation for Azure Pipelines emitter to improve readability
|
|
13
27
|
|
|
14
28
|
### Security
|
|
15
|
-
- CI/CD remains on GitHub Actions with tag/version guard and idempotent PyPI/TestPyPI publishing (`skip-existing`)
|
|
16
|
-
|
|
17
|
-
All notable changes to WorkflowForge will be documented in this file.
|
|
18
|
-
|
|
19
|
-
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
20
|
-
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
21
|
-
|
|
22
29
|
|
|
30
|
+
- CI/CD remains on GitHub Actions with tag/version guard and idempotent PyPI/TestPyPI publishing (`skip-existing`)
|
|
23
31
|
|
|
24
32
|
## [1.0.0] - 2025-08-29
|
|
25
33
|
|
|
26
34
|
### Changed
|
|
35
|
+
|
|
27
36
|
- Promote project to stable release (1.0.0)
|
|
28
37
|
- Update classifiers to Production/Stable
|
|
29
38
|
|
|
30
39
|
### Fixed
|
|
40
|
+
|
|
31
41
|
- Correct GitHub Actions matrix variable references:
|
|
32
|
-
|
|
33
|
-
|
|
42
|
+
- Use `matrix.python_version` instead of `matrix.python-version`
|
|
43
|
+
- Use `matrix.node_version` instead of `matrix.node-version`
|
|
34
44
|
- Align examples and CI workflow with corrected matrix variable names
|
|
35
45
|
|
|
36
46
|
## [1.0b7] - 2025-08-27
|
|
37
47
|
|
|
38
48
|
### Changed
|
|
49
|
+
|
|
39
50
|
- Regenerated examples (python_matrix) and validated with yamllint
|
|
40
51
|
- Maintenance: version bump to 1.0b7
|
|
52
|
+
|
|
41
53
|
## [1.0b6] - 2025-08-27
|
|
42
54
|
|
|
43
55
|
### Changed
|
|
56
|
+
|
|
44
57
|
- Removed legacy references in docs and comments
|
|
45
58
|
- Cleaned egg-info artifacts from repo
|
|
46
59
|
- Ensured examples generate YAML/Jenkinsfile without lingering images
|
|
60
|
+
|
|
47
61
|
## [1.0b5] - 2024-12-19
|
|
48
62
|
|
|
49
63
|
### Added
|
|
64
|
+
|
|
50
65
|
- Complete mypy compliance with strict type checking (51 → 0 errors)
|
|
51
66
|
- Enterprise-grade type safety across all modules
|
|
52
67
|
- Enhanced type annotations for visualization, triggers, strategy, step modules
|
|
@@ -54,12 +69,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
54
69
|
- Professional-grade code quality with comprehensive type validation
|
|
55
70
|
|
|
56
71
|
### Changed
|
|
72
|
+
|
|
57
73
|
- All modules now use proper dict[str, Any] typing for flexible data structures
|
|
58
74
|
- Enhanced IDE support with strict type annotations
|
|
59
75
|
- Improved code reliability through comprehensive type checking
|
|
60
76
|
- Elevated code quality to enterprise standards
|
|
61
77
|
|
|
62
78
|
### Fixed
|
|
79
|
+
|
|
63
80
|
- All mypy type errors resolved across entire codebase
|
|
64
81
|
- Proper return types and function annotations implemented
|
|
65
82
|
- Type assignment issues in codebuild.py resolved
|
|
@@ -68,6 +85,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
68
85
|
## [1.0b4] - 2024-12-19
|
|
69
86
|
|
|
70
87
|
### Added
|
|
88
|
+
|
|
71
89
|
- TRUE dogfooding: WorkflowForge generates its own GitHub Actions workflows
|
|
72
90
|
- Professional CI/CD pipeline with Python 3.11, 3.12, 3.13 test matrix
|
|
73
91
|
- Security scanning integration with Bandit and Safety tools
|
|
@@ -77,6 +95,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
77
95
|
- Type safety across all modules with proper annotations
|
|
78
96
|
|
|
79
97
|
### Changed
|
|
98
|
+
|
|
80
99
|
- Enhanced publish workflow with comprehensive quality checks
|
|
81
100
|
- Integrated security scanning into CI/CD pipeline
|
|
82
101
|
- Improved project automation with self-generated workflows
|
|
@@ -84,6 +103,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
84
103
|
- Enhanced type safety with proper dict[str, Any] annotations
|
|
85
104
|
|
|
86
105
|
### Fixed
|
|
106
|
+
|
|
87
107
|
- Removed generated diagram artifacts to maintain clean repository
|
|
88
108
|
- Eliminated image pollution in project structure
|
|
89
109
|
- Fixed all mypy type errors across visualization, triggers, strategy, step modules
|
|
@@ -93,12 +113,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
93
113
|
## [1.0b3] - 2024-12-19
|
|
94
114
|
|
|
95
115
|
### Added
|
|
116
|
+
|
|
96
117
|
- Strict mypy configuration with Pydantic plugin for enhanced type safety
|
|
97
118
|
- Professional quality badges in README (mypy, black, isort, ruamel.yaml)
|
|
98
119
|
- Comprehensive pre-commit hooks including yamllint for generated files
|
|
99
120
|
- GitHub Actions publish workflow with proper ruamel.yaml formatting
|
|
100
121
|
|
|
101
122
|
### Changed
|
|
123
|
+
|
|
102
124
|
- **BREAKING**: Migrated from PyYAML to ruamel.yaml for superior YAML generation
|
|
103
125
|
- **BREAKING**: Removed top-level import compatibility – use platform-specific modules only
|
|
104
126
|
- Translated all Spanish docstrings and comments to English for professional codebase
|
|
@@ -107,6 +129,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
107
129
|
- Streamlined module exports to platform-specific imports only
|
|
108
130
|
|
|
109
131
|
### Fixed
|
|
132
|
+
|
|
110
133
|
- All flake8 code style issues resolved (F541, E501, E712, E999)
|
|
111
134
|
- YAML validation now passes with proper indentation and formatting
|
|
112
135
|
- Boolean comparisons in tests simplified to Pythonic style
|
|
@@ -114,6 +137,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
114
137
|
- Pre-commit hooks now pass successfully on all files
|
|
115
138
|
|
|
116
139
|
### Removed
|
|
140
|
+
|
|
117
141
|
- Top-level backwards compatibility imports from __init__.py
|
|
118
142
|
- Spanish language docstrings and comments
|
|
119
143
|
- PyYAML dependency in favor of ruamel.yaml
|
|
@@ -122,6 +146,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
122
146
|
## [1.0b2] - 2024-12-18
|
|
123
147
|
|
|
124
148
|
### Added
|
|
149
|
+
|
|
125
150
|
- Initial release with GitHub Actions, Jenkins, and AWS CodeBuild support
|
|
126
151
|
- Pydantic-based models for type safety and validation
|
|
127
152
|
- AI-powered documentation generation with Ollama
|
|
@@ -130,7 +155,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
130
155
|
- Pre-commit hooks for code quality
|
|
131
156
|
|
|
132
157
|
### Features
|
|
158
|
+
|
|
133
159
|
- Platform-specific modules: github_actions, jenkins_platform, aws_codebuild
|
|
134
160
|
- Type-safe pipeline generation with IDE autocompletion
|
|
135
161
|
- YAML/Groovy output with validation
|
|
136
162
|
- Modular architecture with clean API design
|
|
163
|
+
|
|
164
|
+
## [1.1.1] - 2025-08-30
|
|
165
|
+
|
|
166
|
+
### Changed
|
|
167
|
+
|
|
168
|
+
- Version bump for TestPyPI publication and minor documentation/tooling updates
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: workflowforge
|
|
3
|
-
Version: 1.1.
|
|
3
|
+
Version: 1.1.2
|
|
4
4
|
Summary: A robust and flexible library for creating GitHub Actions workflows, Jenkins pipelines, and AWS CodeBuild BuildSpecs programmatically in Python
|
|
5
5
|
Author-email: "Brainy Nimbus, LLC" <info@brainynimbus.io>
|
|
6
6
|
License: MIT
|
|
@@ -41,37 +41,16 @@ Dynamic: license-file
|
|
|
41
41
|
|
|
42
42
|
[![License: MIT][license-badge]][license-url]
|
|
43
43
|
[![PyPI version][pypi-badge]][pypi-url]
|
|
44
|
+
[![Downloads][pepy-badge]][pepy-url]
|
|
44
45
|
[![Test PyPI][testpypi-badge]][testpypi-url]
|
|
45
|
-
[![Python
|
|
46
|
-
[![Python 3.12][python312-badge]][python312-url]
|
|
47
|
-
[![Python 3.13][python313-badge]][python313-url]
|
|
46
|
+
[![Python Versions][python-versions-badge]][python-versions-url]
|
|
48
47
|
[![Tests][tests-badge]][tests-url]
|
|
49
48
|
[![pre-commit.ci status][precommit-badge]][precommit-url]
|
|
50
|
-
[![
|
|
51
|
-
[![
|
|
49
|
+
[![Ruff][ruff-badge]][ruff-url]
|
|
50
|
+
[![Security][security-badge]][security-url]
|
|
51
|
+
[![Maintained by Brainy Nimbus][maintained-badge]][maintained-url]
|
|
52
52
|
|
|
53
|
-
|
|
54
|
-
[license-url]: https://opensource.org/licenses/MIT
|
|
55
|
-
[pypi-badge]: https://badge.fury.io/py/workflowforge.svg
|
|
56
|
-
[pypi-url]: https://badge.fury.io/py/workflowforge
|
|
57
|
-
[testpypi-badge]: https://img.shields.io/badge/Test%20PyPI-published-green
|
|
58
|
-
[testpypi-url]: https://test.pypi.org/project/workflowforge/
|
|
59
|
-
[python311-badge]: https://img.shields.io/badge/python-3.11-blue.svg
|
|
60
|
-
[python311-url]: https://www.python.org/downloads/release/python-3110/
|
|
61
|
-
[python312-badge]: https://img.shields.io/badge/python-3.12-blue.svg
|
|
62
|
-
[python312-url]: https://www.python.org/downloads/release/python-3120/
|
|
63
|
-
[python313-badge]: https://img.shields.io/badge/python-3.13-blue.svg
|
|
64
|
-
[python313-url]: https://www.python.org/downloads/release/python-3130/
|
|
65
|
-
[tests-badge]: https://github.com/brainynimbus/workflowforge/workflows/Publish%20WorkflowForge%20to%20PyPI/badge.svg
|
|
66
|
-
[tests-url]: https://github.com/brainynimbus/workflowforge/actions
|
|
67
|
-
[precommit-badge]: https://results.pre-commit.ci/badge/github/brainynimbus/workflowforge/main.svg
|
|
68
|
-
[precommit-url]: https://results.pre-commit.ci/latest/github/brainynimbus/workflowforge/main
|
|
69
|
-
[black-badge]: https://img.shields.io/badge/code%20style-black-000000.svg
|
|
70
|
-
[black-url]: https://github.com/psf/black
|
|
71
|
-
[isort-badge]: https://img.shields.io/badge/%20imports-isort-%231674b1?style=flat&labelColor=ef8336
|
|
72
|
-
[isort-url]: https://pycqa.github.io/isort/
|
|
73
|
-
|
|
74
|
-
A robust and flexible library for creating GitHub Actions workflows, Jenkins pipelines, and AWS CodeBuild BuildSpecs programmatically in Python.
|
|
53
|
+
A robust and flexible library for creating GitHub Actions workflows, Azure DevOps pipelines, Jenkins pipelines, and AWS CodeBuild BuildSpecs programmatically in Python.
|
|
75
54
|
|
|
76
55
|
## ✨ Features
|
|
77
56
|
|
|
@@ -79,12 +58,13 @@ A robust and flexible library for creating GitHub Actions workflows, Jenkins pip
|
|
|
79
58
|
- **Type Validation**: Built on Pydantic for automatic validation
|
|
80
59
|
- **IDE Support**: Full autocompletion with type hints
|
|
81
60
|
- **Type Safety**: Complete mypy compliance with strict type checking
|
|
82
|
-
- **Multi-Platform**: GitHub Actions, Jenkins, AWS CodeBuild
|
|
83
|
-
- **AI Documentation**: Optional AI-powered README generation with Ollama
|
|
61
|
+
- **Multi-Platform**: GitHub Actions, Azure DevOps, Jenkins, AWS CodeBuild
|
|
84
62
|
- **Pipeline Visualization**: Automatic diagram generation with Graphviz
|
|
85
63
|
- **Secrets Support**: Secure credential handling across all platforms
|
|
86
64
|
- **Templates**: Pre-built workflows for common use cases
|
|
87
65
|
- **Validation**: Schema validation and best practices checking
|
|
66
|
+
- **Optional Security Scan**: On-demand Checkov scan for generated workflows (GitHub Actions and Azure)
|
|
67
|
+
- **Optional AI Documentation**: AI-powered README generation with OllamaPipelines)
|
|
88
68
|
|
|
89
69
|
## 🚀 Installation
|
|
90
70
|
|
|
@@ -98,10 +78,12 @@ Check out the `examples/` directory for complete working examples:
|
|
|
98
78
|
|
|
99
79
|
```bash
|
|
100
80
|
|
|
101
|
-
#
|
|
81
|
+
# Run individual examples
|
|
102
82
|
python examples/github_actions/basic_ci.py
|
|
103
83
|
python examples/jenkins/maven_build.py
|
|
104
84
|
python examples/codebuild/node_app.py
|
|
85
|
+
python examples/azure_devops/hello_world.py
|
|
86
|
+
python examples/azure_devops/python_ci.py
|
|
105
87
|
```
|
|
106
88
|
|
|
107
89
|
This will generate actual pipeline files and diagrams using the new import structure.
|
|
@@ -133,7 +115,7 @@ print(readme)
|
|
|
133
115
|
- ✅ **Works offline** - local AI processing
|
|
134
116
|
- ✅ **Optional** - gracefully falls back to templates if Ollama not available
|
|
135
117
|
- ✅ **Comprehensive** - explains purpose, triggers, jobs, secrets, setup instructions
|
|
136
|
-
- ✅ **All platforms** - GitHub Actions, Jenkins, AWS CodeBuild
|
|
118
|
+
- ✅ **All platforms** - GitHub Actions, Azure DevOps, Jenkins, AWS CodeBuild
|
|
137
119
|
|
|
138
120
|
## 📊 Pipeline Visualization (Automatic)
|
|
139
121
|
|
|
@@ -165,12 +147,12 @@ workflow.generate_diagram("pdf") # PDF document
|
|
|
165
147
|
- ✅ **Automatic generation** - every pipeline gets a visual diagram
|
|
166
148
|
- ✅ **Multiple formats** - PNG, SVG, PDF, DOT
|
|
167
149
|
- ✅ **Smart fallback** - DOT files if Graphviz not installed
|
|
168
|
-
- ✅ **Platform-specific styling** -
|
|
150
|
+
- ✅ **Platform-specific styling** - Azure DevOps (blue), GitHub (purple), Jenkins (orange), CodeBuild (toasted AWS yellow)
|
|
169
151
|
- ✅ **Comprehensive view** - shows triggers, jobs, dependencies, step counts
|
|
170
152
|
|
|
171
153
|
## 📖 Basic Usage
|
|
172
154
|
|
|
173
|
-
###
|
|
155
|
+
### GitHub Actions Usage
|
|
174
156
|
|
|
175
157
|
```python
|
|
176
158
|
from workflowforge import github_actions
|
|
@@ -197,8 +179,6 @@ workflow.save(".github/workflows/hello.yml", generate_readme=True, generate_diag
|
|
|
197
179
|
# Creates: hello.yml + hello_README.md + My_Workflow.png
|
|
198
180
|
```
|
|
199
181
|
|
|
200
|
-
|
|
201
|
-
|
|
202
182
|
### Jenkins Pipeline Usage
|
|
203
183
|
|
|
204
184
|
```python
|
|
@@ -245,6 +225,44 @@ spec.save("buildspec.yml", generate_readme=True, use_ai=True, generate_diagram=T
|
|
|
245
225
|
# Creates: buildspec.yml + buildspec_README.md + codebuild_spec.png
|
|
246
226
|
```
|
|
247
227
|
|
|
228
|
+
### Azure DevOps Usage
|
|
229
|
+
|
|
230
|
+
Generate a simple “hello” pipeline:
|
|
231
|
+
|
|
232
|
+
```python
|
|
233
|
+
from workflowforge import azure_devops as ado
|
|
234
|
+
|
|
235
|
+
pipeline = ado.hello_world_template_azure(
|
|
236
|
+
name="Hello ADO",
|
|
237
|
+
message="Hello Azure DevOps from WorkflowForge!",
|
|
238
|
+
)
|
|
239
|
+
pipeline.save("azure-pipelines.yml")
|
|
240
|
+
```
|
|
241
|
+
|
|
242
|
+
Or generate a Python matrix CI with caching across Ubuntu/Windows/macOS:
|
|
243
|
+
|
|
244
|
+
```python
|
|
245
|
+
from workflowforge import azure_devops as ado
|
|
246
|
+
|
|
247
|
+
pipeline = ado.python_ci_template_azure(
|
|
248
|
+
python_versions=["3.11", "3.12", "3.13"],
|
|
249
|
+
os_list=["ubuntu-latest", "windows-latest", "macOS-latest"],
|
|
250
|
+
use_cache=True,
|
|
251
|
+
)
|
|
252
|
+
pipeline.save("azure-pipelines.yml")
|
|
253
|
+
```
|
|
254
|
+
|
|
255
|
+
Optionally, scan the emitted YAML with Checkov (if installed):
|
|
256
|
+
|
|
257
|
+
```python
|
|
258
|
+
from workflowforge import azure_devops as ado
|
|
259
|
+
|
|
260
|
+
pipeline = ado.python_ci_template_azure()
|
|
261
|
+
pipeline.save("azure-pipelines.yml", scan_with_checkov=True)
|
|
262
|
+
```
|
|
263
|
+
|
|
264
|
+
See also: `examples/azure_devops/python_ci_scan.py`.
|
|
265
|
+
|
|
248
266
|
### AI Documentation Examples
|
|
249
267
|
|
|
250
268
|
```python
|
|
@@ -277,20 +295,21 @@ else:
|
|
|
277
295
|
print("Using template documentation (Ollama not running)")
|
|
278
296
|
```
|
|
279
297
|
|
|
280
|
-
##
|
|
298
|
+
## Modular Import Structure
|
|
281
299
|
|
|
282
|
-
WorkflowForge
|
|
300
|
+
WorkflowForge supports **platform-specific imports** with **snake_case naming** following Python conventions:
|
|
283
301
|
|
|
284
302
|
### Platform Modules
|
|
285
303
|
|
|
286
304
|
```python
|
|
287
305
|
# Import specific platforms
|
|
288
|
-
from workflowforge import github_actions, jenkins_platform, aws_codebuild
|
|
306
|
+
from workflowforge import github_actions, jenkins_platform, aws_codebuild, azure_devops
|
|
289
307
|
|
|
290
308
|
# Or use short aliases
|
|
291
309
|
from workflowforge import github_actions as gh
|
|
292
310
|
from workflowforge import jenkins_platform as jenkins
|
|
293
311
|
from workflowforge import aws_codebuild as cb
|
|
312
|
+
from workflowforge import azure_devops as ado
|
|
294
313
|
```
|
|
295
314
|
|
|
296
315
|
### Benefits
|
|
@@ -298,11 +317,8 @@ from workflowforge import aws_codebuild as cb
|
|
|
298
317
|
✅ **Platform separation** - Clear namespace for each platform
|
|
299
318
|
✅ **Snake case naming** - Follows Python PEP 8 conventions
|
|
300
319
|
✅ **IDE autocompletion** - Better IntelliSense support
|
|
301
|
-
|
|
302
320
|
✅ **Shorter code** - `gh.action()` vs `github_actions.action()`
|
|
303
321
|
|
|
304
|
-
|
|
305
|
-
|
|
306
322
|
## 🔧 Advanced Examples
|
|
307
323
|
|
|
308
324
|
### Build Matrix Workflow
|
|
@@ -360,6 +376,7 @@ workflow.add_job("deploy", deploy_job)
|
|
|
360
376
|
- `action()`, `run()` steps
|
|
361
377
|
- `secret()`, `variable()`, `github_context()` for credentials
|
|
362
378
|
- Build matrices, strategies, environments
|
|
379
|
+
- Optional Checkov scan: `workflow.save(path, scan_with_checkov=True)`
|
|
363
380
|
|
|
364
381
|
**Jenkins:**
|
|
365
382
|
|
|
@@ -373,18 +390,25 @@ workflow.add_job("deploy", deploy_job)
|
|
|
373
390
|
- `codebuild_secret()`, `codebuild_parameter()`, `codebuild_env()`
|
|
374
391
|
- Runtime versions, caching, reports
|
|
375
392
|
|
|
393
|
+
**Azure DevOps:**
|
|
394
|
+
|
|
395
|
+
- `pipeline()`, `job()`, `strategy(matrix=...)`, `task()`, `script()`
|
|
396
|
+
- Build matrices, multi-OS matrix, and pip caching
|
|
397
|
+
- Hello world template
|
|
398
|
+
- Optional Checkov scan: `pipeline.save(path, scan_with_checkov=True)`
|
|
399
|
+
|
|
376
400
|
### AI Documentation
|
|
377
401
|
|
|
378
402
|
- **Ollama Integration**: Local AI models (llama3.2, codellama, qwen2.5-coder)
|
|
379
403
|
- **Automatic README**: Explains workflow purpose, triggers, jobs, setup
|
|
380
404
|
- **Fallback Support**: Template-based documentation if AI unavailable
|
|
381
|
-
- **All Platforms**: Works with GitHub Actions, Jenkins, CodeBuild
|
|
405
|
+
- **All Platforms**: Works with GitHub Actions, Azure DevOps, Jenkins, CodeBuild
|
|
382
406
|
|
|
383
407
|
### Pipeline Visualization
|
|
384
408
|
|
|
385
409
|
- **Graphviz Integration**: Native diagram generation using DOT language
|
|
386
410
|
- **Multiple Formats**: PNG, SVG, PDF, DOT files
|
|
387
|
-
- **Platform Styling**: Color-coded diagrams (
|
|
411
|
+
- **Platform Styling**: Color-coded diagrams (Azure DevOps: blue, GitHub: purple, Jenkins: orange, CodeBuild: toasted AWS yellow)
|
|
388
412
|
- **Smart Fallback**: DOT files if Graphviz not installed, images if available
|
|
389
413
|
- **Comprehensive View**: Shows triggers, jobs, dependencies, step counts, execution flow
|
|
390
414
|
|
|
@@ -393,9 +417,9 @@ workflow.add_job("deploy", deploy_job)
|
|
|
393
417
|
Contributions are welcome! Please:
|
|
394
418
|
|
|
395
419
|
1. Fork the repository
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
420
|
+
1. Create a feature branch
|
|
421
|
+
1. Add tests
|
|
422
|
+
1. Submit a pull request
|
|
399
423
|
|
|
400
424
|
## 👨💻 Author & Maintainer
|
|
401
425
|
|
|
@@ -428,3 +452,29 @@ MIT License - see [LICENSE](LICENSE) for details.
|
|
|
428
452
|
- [CodeBuild Documentation](https://docs.aws.amazon.com/codebuild/)
|
|
429
453
|
- [BuildSpec Reference](https://docs.aws.amazon.com/codebuild/latest/userguide/build-spec-ref.html)
|
|
430
454
|
- [CodeBuild Samples](https://docs.aws.amazon.com/codebuild/latest/userguide/samples.html)
|
|
455
|
+
|
|
456
|
+
**Azure DevOps Pipelines:**
|
|
457
|
+
|
|
458
|
+
- [YAML schema reference](https://learn.microsoft.com/en-us/azure/devops/pipelines/yaml-schema)
|
|
459
|
+
- [Customize Python pipelines](https://learn.microsoft.com/en-us/azure/devops/pipelines/ecosystems/customize-python)
|
|
460
|
+
|
|
461
|
+
[license-badge]: https://img.shields.io/badge/License-MIT-yellow.svg
|
|
462
|
+
[license-url]: https://opensource.org/licenses/MIT
|
|
463
|
+
[maintained-badge]: https://img.shields.io/badge/maintained%20by-Brainy%20Nimbus-8A2BE2?style=flat
|
|
464
|
+
[maintained-url]: https://brainynimbus.io/
|
|
465
|
+
[pepy-badge]: https://static.pepy.tech/badge/workflowforge
|
|
466
|
+
[pepy-url]: https://pepy.tech/project/workflowforge
|
|
467
|
+
[precommit-badge]: https://results.pre-commit.ci/badge/github/brainynimbus/workflowforge/main.svg
|
|
468
|
+
[precommit-url]: https://results.pre-commit.ci/latest/github/brainynimbus/workflowforge/main
|
|
469
|
+
[pypi-badge]: https://badge.fury.io/py/workflowforge.svg
|
|
470
|
+
[pypi-url]: https://badge.fury.io/py/workflowforge
|
|
471
|
+
[python-versions-badge]: https://img.shields.io/badge/python-3.11%20%7C%203.12%20%7C%203.13-blue
|
|
472
|
+
[python-versions-url]: https://www.python.org/
|
|
473
|
+
[ruff-badge]: https://img.shields.io/badge/linting-ruff-46A3FF?logo=ruff&logoColor=white
|
|
474
|
+
[ruff-url]: https://github.com/astral-sh/ruff
|
|
475
|
+
[security-badge]: https://img.shields.io/badge/security-bandit-brightgreen?style=flat
|
|
476
|
+
[security-url]: https://bandit.readthedocs.io/
|
|
477
|
+
[testpypi-badge]: https://img.shields.io/badge/Test%20PyPI-published-green
|
|
478
|
+
[testpypi-url]: https://test.pypi.org/project/workflowforge/
|
|
479
|
+
[tests-badge]: https://github.com/brainynimbus/workflowforge/workflows/Publish%20WorkflowForge%20to%20PyPI/badge.svg
|
|
480
|
+
[tests-url]: https://github.com/brainynimbus/workflowforge/actions
|