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