workflowforge 1.0b5__tar.gz → 1.1.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.
Files changed (69) hide show
  1. workflowforge-1.1.0/.github/workflows/publish.yml +142 -0
  2. {workflowforge-1.0b5 → workflowforge-1.1.0}/.gitignore +1 -1
  3. {workflowforge-1.0b5 → workflowforge-1.1.0}/.pre-commit-config.yaml +14 -6
  4. workflowforge-1.1.0/CHANGELOG.md +136 -0
  5. {workflowforge-1.0b5 → workflowforge-1.1.0}/PKG-INFO +38 -42
  6. {workflowforge-1.0b5 → workflowforge-1.1.0}/README.md +35 -39
  7. workflowforge-1.1.0/RELEASE_NOTES_v1.0.0.md +35 -0
  8. workflowforge-1.1.0/RELEASE_NOTES_v1.1.0.md +25 -0
  9. {workflowforge-1.0b5 → workflowforge-1.1.0}/examples/README.md +1 -6
  10. workflowforge-1.1.0/examples/azure_devops/hello_world.py +23 -0
  11. workflowforge-1.1.0/examples/azure_devops/hello_world.yml +13 -0
  12. workflowforge-1.1.0/examples/azure_devops/python_ci.py +21 -0
  13. workflowforge-1.1.0/examples/azure_devops/python_ci.yml +66 -0
  14. {workflowforge-1.0b5 → workflowforge-1.1.0}/examples/codebuild/buildspec.yml +5 -5
  15. workflowforge-1.1.0/examples/github_actions/basic_ci.yml +14 -0
  16. {workflowforge-1.0b5 → workflowforge-1.1.0}/examples/github_actions/python_matrix.py +1 -1
  17. workflowforge-1.1.0/examples/github_actions/python_matrix.yml +28 -0
  18. {workflowforge-1.0b5 → workflowforge-1.1.0}/examples/jenkins/Jenkinsfile +3 -3
  19. {workflowforge-1.0b5 → workflowforge-1.1.0}/examples/jenkins/maven_build.py +3 -3
  20. {workflowforge-1.0b5 → workflowforge-1.1.0}/pyproject.toml +16 -14
  21. workflowforge-1.1.0/src/workflowforge/__init__.py +20 -0
  22. {workflowforge-1.0b5 → workflowforge-1.1.0}/src/workflowforge/ai_documentation.py +11 -10
  23. workflowforge-1.1.0/src/workflowforge/azure_devops.py +289 -0
  24. {workflowforge-1.0b5 → workflowforge-1.1.0}/src/workflowforge/codebuild.py +20 -9
  25. {workflowforge-1.0b5 → workflowforge-1.1.0}/src/workflowforge/environment.py +4 -4
  26. {workflowforge-1.0b5 → workflowforge-1.1.0}/src/workflowforge/github_actions_module.py +0 -1
  27. {workflowforge-1.0b5 → workflowforge-1.1.0}/src/workflowforge/jenkins.py +5 -3
  28. {workflowforge-1.0b5 → workflowforge-1.1.0}/src/workflowforge/jenkins_plugins.py +5 -4
  29. {workflowforge-1.0b5 → workflowforge-1.1.0}/src/workflowforge/job.py +11 -11
  30. {workflowforge-1.0b5 → workflowforge-1.1.0}/src/workflowforge/schema_validation.py +11 -10
  31. {workflowforge-1.0b5 → workflowforge-1.1.0}/src/workflowforge/secrets.py +0 -2
  32. {workflowforge-1.0b5 → workflowforge-1.1.0}/src/workflowforge/step.py +25 -30
  33. workflowforge-1.1.0/src/workflowforge/strategy.py +59 -0
  34. {workflowforge-1.0b5 → workflowforge-1.1.0}/src/workflowforge/templates.py +7 -7
  35. {workflowforge-1.0b5 → workflowforge-1.1.0}/src/workflowforge/triggers.py +40 -43
  36. {workflowforge-1.0b5 → workflowforge-1.1.0}/src/workflowforge/validation.py +6 -4
  37. {workflowforge-1.0b5 → workflowforge-1.1.0}/src/workflowforge/visualization.py +18 -14
  38. {workflowforge-1.0b5 → workflowforge-1.1.0}/src/workflowforge/workflow.py +21 -12
  39. {workflowforge-1.0b5 → workflowforge-1.1.0}/src/workflowforge.egg-info/PKG-INFO +38 -42
  40. {workflowforge-1.0b5 → workflowforge-1.1.0}/src/workflowforge.egg-info/SOURCES.txt +7 -1
  41. {workflowforge-1.0b5 → workflowforge-1.1.0}/src/workflowforge.egg-info/requires.txt +1 -1
  42. {workflowforge-1.0b5 → workflowforge-1.1.0}/tests/test_ai_documentation.py +0 -2
  43. {workflowforge-1.0b5 → workflowforge-1.1.0}/tests/test_codebuild.py +0 -1
  44. {workflowforge-1.0b5 → workflowforge-1.1.0}/tests/test_jenkins.py +1 -3
  45. {workflowforge-1.0b5 → workflowforge-1.1.0}/tests/test_secrets.py +1 -3
  46. {workflowforge-1.0b5 → workflowforge-1.1.0}/tests/test_templates.py +19 -2
  47. workflowforge-1.1.0/tests/test_validation.py +30 -0
  48. {workflowforge-1.0b5 → workflowforge-1.1.0}/tests/test_workflow.py +9 -14
  49. workflowforge-1.0b5/.github/workflows/publish.yml +0 -120
  50. workflowforge-1.0b5/CHANGELOG.md +0 -46
  51. workflowforge-1.0b5/codebuild_spec.png +0 -0
  52. workflowforge-1.0b5/examples/github_actions/basic_ci.yml +0 -14
  53. workflowforge-1.0b5/examples/github_actions/python_matrix.yml +0 -28
  54. workflowforge-1.0b5/src/workflowforge/__init__.py +0 -203
  55. workflowforge-1.0b5/src/workflowforge/strategy.py +0 -59
  56. workflowforge-1.0b5/tests/test_validation.py +0 -38
  57. {workflowforge-1.0b5 → workflowforge-1.1.0}/.flake8 +0 -0
  58. {workflowforge-1.0b5 → workflowforge-1.1.0}/.github/pull_request_template.md +0 -0
  59. {workflowforge-1.0b5 → workflowforge-1.1.0}/AUTHORS.md +0 -0
  60. {workflowforge-1.0b5 → workflowforge-1.1.0}/LICENSE +0 -0
  61. {workflowforge-1.0b5 → workflowforge-1.1.0}/MANIFEST.in +0 -0
  62. {workflowforge-1.0b5 → workflowforge-1.1.0}/README_PRECOMMIT.md +0 -0
  63. {workflowforge-1.0b5 → workflowforge-1.1.0}/examples/codebuild/node_app.py +0 -0
  64. {workflowforge-1.0b5 → workflowforge-1.1.0}/examples/github_actions/basic_ci.py +0 -0
  65. {workflowforge-1.0b5 → workflowforge-1.1.0}/setup.cfg +0 -0
  66. {workflowforge-1.0b5 → workflowforge-1.1.0}/setup.py +0 -0
  67. {workflowforge-1.0b5 → workflowforge-1.1.0}/src/workflowforge.egg-info/dependency_links.txt +0 -0
  68. {workflowforge-1.0b5 → workflowforge-1.1.0}/src/workflowforge.egg-info/top_level.txt +0 -0
  69. {workflowforge-1.0b5 → workflowforge-1.1.0}/tests/__init__.py +0 -0
@@ -0,0 +1,142 @@
1
+ # Do not modify - Generated with WorkflowForge
2
+ name: Publish WorkflowForge to PyPI
3
+ on:
4
+ push:
5
+ branches:
6
+ - main
7
+ pull_request:
8
+ branches:
9
+ - main
10
+ release:
11
+ types:
12
+ - published
13
+ workflow_dispatch:
14
+ inputs:
15
+ target:
16
+ description: Publish target (testpypi|pypi)
17
+ required: true
18
+ default: testpypi
19
+ type: choice
20
+ options:
21
+ - testpypi
22
+ - pypi
23
+ jobs:
24
+ test:
25
+ steps:
26
+ - uses: actions/checkout@v4
27
+ name: Checkout code
28
+ - uses: actions/setup-python@v5
29
+ name: Set up Python ${{ matrix.python_version }}
30
+ with:
31
+ python-version: ${{ matrix.python_version }}
32
+ - run: python -m pip install --upgrade pip
33
+ name: Install pip
34
+ - run: pip install -e .[dev]
35
+ name: Install dependencies
36
+ - run: black --check src/ tests/
37
+ name: Check code formatting
38
+ - run: isort --check-only src/ tests/
39
+ name: Check import sorting
40
+ - run: flake8 src/ tests/ examples/
41
+ name: Lint with flake8
42
+ - run: mypy --install-types --non-interactive src/
43
+ name: Type check with mypy
44
+ - run: pytest tests/ --cov=workflowforge --cov-report=xml
45
+ name: Run tests with coverage
46
+ strategy:
47
+ matrix:
48
+ python_version:
49
+ - '3.11'
50
+ - '3.12'
51
+ - '3.13'
52
+ runs-on: ubuntu-latest
53
+ security:
54
+ steps:
55
+ - uses: actions/checkout@v4
56
+ name: Checkout code
57
+ - uses: actions/setup-python@v5
58
+ name: Set up Python
59
+ with:
60
+ python-version: '3.11'
61
+ - run: pip install bandit safety
62
+ name: Install security tools
63
+ - run: bandit -r src/
64
+ name: Security scan with Bandit
65
+ - run: safety check --ignore-unpinned || echo 'Safety check completed with warnings'
66
+ name: Check dependencies for vulnerabilities
67
+ runs-on: ubuntu-latest
68
+ build:
69
+ steps:
70
+ - uses: actions/checkout@v4
71
+ name: Checkout code
72
+ - uses: actions/setup-python@v5
73
+ name: Set up Python
74
+ with:
75
+ python-version: '3.11'
76
+ - run: python -m pip install --upgrade pip build twine
77
+ name: Install build tools
78
+ - run: python -m build
79
+ name: Build package
80
+ - run: "echo \"Verifying tag matches pyproject version for release runs...\"\nPYPROJECT_VERSION=$(python - <<'PY'\n\
81
+ import tomllib\nwith open('pyproject.toml', 'rb') as f:\n data = tomllib.load(f)\nprint(data['project']['version'])\n\
82
+ PY\n)\nTAG_NAME=${GITHUB_REF_NAME#v}\necho \"pyproject version: ${PYPROJECT_VERSION}\"\necho \"tag version :
83
+ ${TAG_NAME}\"\nif [ \"${{ github.event_name }}\" = \"release\" ] && [ \"$PYPROJECT_VERSION\" != \"$TAG_NAME\" ];
84
+ then\n echo \"ERROR: Version mismatch (pyproject=$PYPROJECT_VERSION tag=$TAG_NAME). Aborting.\" >&2\n exit 1\n\
85
+ fi\n"
86
+ name: Verify tag and project version match
87
+ - run: twine check dist/*
88
+ name: Verify package metadata
89
+ - uses: actions/upload-artifact@v4
90
+ name: Upload build artifacts
91
+ with:
92
+ name: dist
93
+ path: dist/
94
+ needs:
95
+ - test
96
+ - security
97
+ runs-on: ubuntu-latest
98
+ publish-testpypi:
99
+ steps:
100
+ - uses: actions/download-artifact@v4
101
+ name: Download build artifacts
102
+ with:
103
+ name: dist
104
+ path: dist/
105
+ - uses: pypa/gh-action-pypi-publish@release/v1
106
+ name: Publish to TestPyPI
107
+ with:
108
+ repository-url: https://test.pypi.org/legacy/
109
+ skip-existing: 'true'
110
+ verify-metadata: 'true'
111
+ print-hash: 'true'
112
+ needs: build
113
+ environment:
114
+ name: testpypi
115
+ url: https://test.pypi.org/p/workflowforge
116
+ permissions:
117
+ id-token: write
118
+ if: (github.ref == 'refs/heads/main' && github.event_name == 'push') || (github.event_name == 'workflow_dispatch' &&
119
+ github.event.inputs.target == 'testpypi')
120
+ runs-on: ubuntu-latest
121
+ publish-pypi:
122
+ steps:
123
+ - uses: actions/download-artifact@v4
124
+ name: Download build artifacts
125
+ with:
126
+ name: dist
127
+ path: dist/
128
+ - uses: pypa/gh-action-pypi-publish@release/v1
129
+ name: Publish to PyPI
130
+ with:
131
+ skip-existing: 'true'
132
+ verify-metadata: 'true'
133
+ print-hash: 'true'
134
+ needs: build
135
+ environment:
136
+ name: pypi
137
+ url: https://pypi.org/p/workflowforge
138
+ permissions:
139
+ id-token: write
140
+ if: github.event_name == 'release' || (github.event_name == 'workflow_dispatch' && github.event.inputs.target ==
141
+ 'pypi')
142
+ runs-on: ubuntu-latest
@@ -199,4 +199,4 @@ create_*pipeline*.py
199
199
  *_README.md
200
200
  *workflow*.png
201
201
  *pipeline*.png
202
- *buildspec*.png
202
+ *codebuild*.png
@@ -41,12 +41,12 @@ repos:
41
41
  - id: conventional-pre-commit
42
42
  stages: [commit-msg]
43
43
 
44
- # Python syntax and style (temporarily disabled)
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"]
44
+ # Python syntax and style
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
50
 
51
51
  # Upgrade Python syntax
52
52
  - repo: https://github.com/asottile/pyupgrade
@@ -54,3 +54,11 @@ repos:
54
54
  hooks:
55
55
  - id: pyupgrade
56
56
  args: [--py311-plus]
57
+
58
+ # YAML linting
59
+ - repo: https://github.com/adrienverge/yamllint
60
+ rev: v1.35.1
61
+ hooks:
62
+ - id: yamllint
63
+ args: ["--config-data", "{extends: default, rules: {document-start: disable, line-length: {max: 120}, truthy: disable}}"]
64
+ files: ^examples/.*\.ya?ml$
@@ -0,0 +1,136 @@
1
+ # Changelog
2
+
3
+ ## [1.1.0] - 2025-08-29
4
+
5
+ ### Added
6
+ - Azure DevOps YAML support (`workflowforge.azure_devops`): pipeline/job/steps/task modeling and YAML emitter
7
+ - Python CI template for Azure Pipelines with multi-OS matrix (Ubuntu/Windows/macOS) and pip caching via Cache@2
8
+ - Minimal Azure DevOps hello-world template and examples under `examples/azure_devops/`
9
+
10
+ ### Changed
11
+ - Exported `azure_devops` from public API for `from workflowforge import azure_devops`
12
+ - Consistent YAML indentation for Azure Pipelines emitter to improve readability
13
+
14
+ ### 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
+
23
+
24
+ ## [1.0.0] - 2025-08-29
25
+
26
+ ### Changed
27
+ - Promote project to stable release (1.0.0)
28
+ - Update classifiers to Production/Stable
29
+
30
+ ### Fixed
31
+ - Correct GitHub Actions matrix variable references:
32
+ - Use `matrix.python_version` instead of `matrix.python-version`
33
+ - Use `matrix.node_version` instead of `matrix.node-version`
34
+ - Align examples and CI workflow with corrected matrix variable names
35
+
36
+ ## [1.0b7] - 2025-08-27
37
+
38
+ ### Changed
39
+ - Regenerated examples (python_matrix) and validated with yamllint
40
+ - Maintenance: version bump to 1.0b7
41
+ ## [1.0b6] - 2025-08-27
42
+
43
+ ### Changed
44
+ - Removed legacy references in docs and comments
45
+ - Cleaned egg-info artifacts from repo
46
+ - Ensured examples generate YAML/Jenkinsfile without lingering images
47
+ ## [1.0b5] - 2024-12-19
48
+
49
+ ### Added
50
+ - Complete mypy compliance with strict type checking (51 → 0 errors)
51
+ - Enterprise-grade type safety across all modules
52
+ - Enhanced type annotations for visualization, triggers, strategy, step modules
53
+ - Type guards for safe type checking in AI documentation
54
+ - Professional-grade code quality with comprehensive type validation
55
+
56
+ ### Changed
57
+ - All modules now use proper dict[str, Any] typing for flexible data structures
58
+ - Enhanced IDE support with strict type annotations
59
+ - Improved code reliability through comprehensive type checking
60
+ - Elevated code quality to enterprise standards
61
+
62
+ ### Fixed
63
+ - All mypy type errors resolved across entire codebase
64
+ - Proper return types and function annotations implemented
65
+ - Type assignment issues in codebuild.py resolved
66
+ - Enhanced type safety in templates.py with factory functions
67
+
68
+ ## [1.0b4] - 2024-12-19
69
+
70
+ ### Added
71
+ - TRUE dogfooding: WorkflowForge generates its own GitHub Actions workflows
72
+ - Professional CI/CD pipeline with Python 3.11, 3.12, 3.13 test matrix
73
+ - Security scanning integration with Bandit and Safety tools
74
+ - OIDC trusted publishing for PyPI deployment (no API tokens needed)
75
+ - Automated TestPyPI publishing on main branch merges
76
+ - Complete mypy compliance with strict type checking (51 → 0 errors)
77
+ - Type safety across all modules with proper annotations
78
+
79
+ ### Changed
80
+ - Enhanced publish workflow with comprehensive quality checks
81
+ - Integrated security scanning into CI/CD pipeline
82
+ - Improved project automation with self-generated workflows
83
+ - Migrated all type annotations to strict mypy compliance
84
+ - Enhanced type safety with proper dict[str, Any] annotations
85
+
86
+ ### Fixed
87
+ - Removed generated diagram artifacts to maintain clean repository
88
+ - Eliminated image pollution in project structure
89
+ - Fixed all mypy type errors across visualization, triggers, strategy, step modules
90
+ - Corrected return types and function annotations for complete type safety
91
+ - Resolved codebuild.py type assignment issues with proper dict typing
92
+
93
+ ## [1.0b3] - 2024-12-19
94
+
95
+ ### Added
96
+ - Strict mypy configuration with Pydantic plugin for enhanced type safety
97
+ - Professional quality badges in README (mypy, black, isort, ruamel.yaml)
98
+ - Comprehensive pre-commit hooks including yamllint for generated files
99
+ - GitHub Actions publish workflow with proper ruamel.yaml formatting
100
+
101
+ ### Changed
102
+ - **BREAKING**: Migrated from PyYAML to ruamel.yaml for superior YAML generation
103
+ - **BREAKING**: Removed top-level import compatibility – use platform-specific modules only
104
+ - Translated all Spanish docstrings and comments to English for professional codebase
105
+ - Improved YAML formatting with precise indentation (mapping=2, sequence=4, offset=2)
106
+ - Enhanced code quality with flake8, black, and isort integration
107
+ - Streamlined module exports to platform-specific imports only
108
+
109
+ ### Fixed
110
+ - All flake8 code style issues resolved (F541, E501, E712, E999)
111
+ - YAML validation now passes with proper indentation and formatting
112
+ - Boolean comparisons in tests simplified to Pythonic style
113
+ - Line length violations fixed across entire codebase
114
+ - Pre-commit hooks now pass successfully on all files
115
+
116
+ ### Removed
117
+ - Top-level backwards compatibility imports from __init__.py
118
+ - Spanish language docstrings and comments
119
+ - PyYAML dependency in favor of ruamel.yaml
120
+ - npm-groovy-lint from pre-commit (simplified validation)
121
+
122
+ ## [1.0b2] - 2024-12-18
123
+
124
+ ### Added
125
+ - Initial release with GitHub Actions, Jenkins, and AWS CodeBuild support
126
+ - Pydantic-based models for type safety and validation
127
+ - AI-powered documentation generation with Ollama
128
+ - Pipeline visualization with Graphviz
129
+ - Comprehensive examples and templates
130
+ - Pre-commit hooks for code quality
131
+
132
+ ### Features
133
+ - Platform-specific modules: github_actions, jenkins_platform, aws_codebuild
134
+ - Type-safe pipeline generation with IDE autocompletion
135
+ - YAML/Groovy output with validation
136
+ - Modular architecture with clean API design
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: workflowforge
3
- Version: 1.0b5
3
+ Version: 1.1.0
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
@@ -9,7 +9,7 @@ Project-URL: Repository, https://github.com/brainynimbus/workflowforge
9
9
  Project-URL: Documentation, https://workflowforge.brainynimbus.io
10
10
  Project-URL: Issues, https://github.com/brainynimbus/workflowforge/issues
11
11
  Keywords: github-actions,jenkins,codebuild,aws,workflow,ci-cd,automation,yaml,devops,pipeline,buildspec
12
- Classifier: Development Status :: 4 - Beta
12
+ Classifier: Development Status :: 5 - Production/Stable
13
13
  Classifier: Intended Audience :: Developers
14
14
  Classifier: Programming Language :: Python :: 3
15
15
  Classifier: Programming Language :: Python :: 3.11
@@ -21,7 +21,7 @@ Requires-Python: >=3.11
21
21
  Description-Content-Type: text/markdown
22
22
  License-File: LICENSE
23
23
  License-File: AUTHORS.md
24
- Requires-Dist: pyyaml>=6.0
24
+ Requires-Dist: ruamel.yaml>=0.18.0
25
25
  Requires-Dist: pydantic>=2.0.0
26
26
  Requires-Dist: typing-extensions>=4.0.0
27
27
  Requires-Dist: requests>=2.25.0
@@ -37,14 +37,39 @@ Dynamic: license-file
37
37
 
38
38
  # WorkflowForge 🔨
39
39
 
40
- [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
41
- [![Python 3.11](https://img.shields.io/badge/python-3.11-blue.svg)](https://www.python.org/downloads/release/python-3110/)
42
- [![Python 3.12](https://img.shields.io/badge/python-3.12-blue.svg)](https://www.python.org/downloads/release/python-3120/)
43
- [![Python 3.13](https://img.shields.io/badge/python-3.13-blue.svg)](https://www.python.org/downloads/release/python-3130/)
44
- [![PyPI version](https://badge.fury.io/py/workflowforge.svg)](https://badge.fury.io/py/workflowforge)
45
- <!-- [![Downloads](https://pepy.tech/badge/workflowforge)](https://pepy.tech/project/workflowforge) -->
46
- [![Test PyPI](https://img.shields.io/badge/Test%20PyPI-published-green)](https://test.pypi.org/project/workflowforge/)
47
- [![Tests](https://github.com/brainynimbus/workflowforge/workflows/Publish%20WorkflowForge%20to%20PyPI/badge.svg)](https://github.com/brainynimbus/workflowforge/actions)
40
+ ## 📊 Project Status
41
+
42
+ [![License: MIT][license-badge]][license-url]
43
+ [![PyPI version][pypi-badge]][pypi-url]
44
+ [![Test PyPI][testpypi-badge]][testpypi-url]
45
+ [![Python 3.11][python311-badge]][python311-url]
46
+ [![Python 3.12][python312-badge]][python312-url]
47
+ [![Python 3.13][python313-badge]][python313-url]
48
+ [![Tests][tests-badge]][tests-url]
49
+ [![pre-commit.ci status][precommit-badge]][precommit-url]
50
+ [![Formatted with Black][black-badge]][black-url]
51
+ [![Imports: isort][isort-badge]][isort-url]
52
+
53
+ [license-badge]: https://img.shields.io/badge/License-MIT-yellow.svg
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/
48
73
 
49
74
  A robust and flexible library for creating GitHub Actions workflows, Jenkins pipelines, and AWS CodeBuild BuildSpecs programmatically in Python.
50
75
 
@@ -53,6 +78,7 @@ A robust and flexible library for creating GitHub Actions workflows, Jenkins pip
53
78
  - **Intuitive API**: Fluent and easy-to-use syntax
54
79
  - **Type Validation**: Built on Pydantic for automatic validation
55
80
  - **IDE Support**: Full autocompletion with type hints
81
+ - **Type Safety**: Complete mypy compliance with strict type checking
56
82
  - **Multi-Platform**: GitHub Actions, Jenkins, AWS CodeBuild
57
83
  - **AI Documentation**: Optional AI-powered README generation with Ollama
58
84
  - **Pipeline Visualization**: Automatic diagram generation with Graphviz
@@ -171,21 +197,7 @@ workflow.save(".github/workflows/hello.yml", generate_readme=True, generate_diag
171
197
  # Creates: hello.yml + hello_README.md + My_Workflow.png
172
198
  ```
173
199
 
174
- ### Legacy Import Style (Still Supported)
175
200
 
176
- ```python
177
- from workflowforge import (
178
- Workflow, Job,
179
- action, run,
180
- on_push, on_pull_request
181
- )
182
-
183
- # Create workflow (PascalCase classes)
184
- workflow = Workflow(
185
- name="My Workflow",
186
- on=on_push(branches=["main"])
187
- )
188
- ```
189
201
 
190
202
  ### Jenkins Pipeline Usage
191
203
 
@@ -286,26 +298,10 @@ from workflowforge import aws_codebuild as cb
286
298
  ✅ **Platform separation** - Clear namespace for each platform
287
299
  ✅ **Snake case naming** - Follows Python PEP 8 conventions
288
300
  ✅ **IDE autocompletion** - Better IntelliSense support
289
- ✅ **Backwards compatibility** - Old imports still work
290
- ✅ **Shorter code** - `gh.action()` vs `github_actions.action()`
291
-
292
- ### Migration Guide
293
301
 
294
- ```python
295
- # Old style (still works)
296
- from workflowforge import Workflow, Job, action, run, on_push
297
-
298
- workflow = Workflow(name="CI", on=on_push())
299
- job = Job(runs_on="ubuntu-latest")
300
- job.add_step(action("actions/checkout@v4"))
302
+ ✅ **Shorter code** - `gh.action()` vs `github_actions.action()`
301
303
 
302
- # New style (recommended)
303
- from workflowforge import github_actions as gh
304
304
 
305
- workflow = gh.workflow(name="CI", on=gh.on_push())
306
- job = gh.job(runs_on="ubuntu-latest")
307
- job.add_step(gh.action("actions/checkout@v4"))
308
- ```
309
305
 
310
306
  ## 🔧 Advanced Examples
311
307
 
@@ -1,13 +1,38 @@
1
1
  # WorkflowForge 🔨
2
2
 
3
- [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
4
- [![Python 3.11](https://img.shields.io/badge/python-3.11-blue.svg)](https://www.python.org/downloads/release/python-3110/)
5
- [![Python 3.12](https://img.shields.io/badge/python-3.12-blue.svg)](https://www.python.org/downloads/release/python-3120/)
6
- [![Python 3.13](https://img.shields.io/badge/python-3.13-blue.svg)](https://www.python.org/downloads/release/python-3130/)
7
- [![PyPI version](https://badge.fury.io/py/workflowforge.svg)](https://badge.fury.io/py/workflowforge)
8
- <!-- [![Downloads](https://pepy.tech/badge/workflowforge)](https://pepy.tech/project/workflowforge) -->
9
- [![Test PyPI](https://img.shields.io/badge/Test%20PyPI-published-green)](https://test.pypi.org/project/workflowforge/)
10
- [![Tests](https://github.com/brainynimbus/workflowforge/workflows/Publish%20WorkflowForge%20to%20PyPI/badge.svg)](https://github.com/brainynimbus/workflowforge/actions)
3
+ ## 📊 Project Status
4
+
5
+ [![License: MIT][license-badge]][license-url]
6
+ [![PyPI version][pypi-badge]][pypi-url]
7
+ [![Test PyPI][testpypi-badge]][testpypi-url]
8
+ [![Python 3.11][python311-badge]][python311-url]
9
+ [![Python 3.12][python312-badge]][python312-url]
10
+ [![Python 3.13][python313-badge]][python313-url]
11
+ [![Tests][tests-badge]][tests-url]
12
+ [![pre-commit.ci status][precommit-badge]][precommit-url]
13
+ [![Formatted with Black][black-badge]][black-url]
14
+ [![Imports: isort][isort-badge]][isort-url]
15
+
16
+ [license-badge]: https://img.shields.io/badge/License-MIT-yellow.svg
17
+ [license-url]: https://opensource.org/licenses/MIT
18
+ [pypi-badge]: https://badge.fury.io/py/workflowforge.svg
19
+ [pypi-url]: https://badge.fury.io/py/workflowforge
20
+ [testpypi-badge]: https://img.shields.io/badge/Test%20PyPI-published-green
21
+ [testpypi-url]: https://test.pypi.org/project/workflowforge/
22
+ [python311-badge]: https://img.shields.io/badge/python-3.11-blue.svg
23
+ [python311-url]: https://www.python.org/downloads/release/python-3110/
24
+ [python312-badge]: https://img.shields.io/badge/python-3.12-blue.svg
25
+ [python312-url]: https://www.python.org/downloads/release/python-3120/
26
+ [python313-badge]: https://img.shields.io/badge/python-3.13-blue.svg
27
+ [python313-url]: https://www.python.org/downloads/release/python-3130/
28
+ [tests-badge]: https://github.com/brainynimbus/workflowforge/workflows/Publish%20WorkflowForge%20to%20PyPI/badge.svg
29
+ [tests-url]: https://github.com/brainynimbus/workflowforge/actions
30
+ [precommit-badge]: https://results.pre-commit.ci/badge/github/brainynimbus/workflowforge/main.svg
31
+ [precommit-url]: https://results.pre-commit.ci/latest/github/brainynimbus/workflowforge/main
32
+ [black-badge]: https://img.shields.io/badge/code%20style-black-000000.svg
33
+ [black-url]: https://github.com/psf/black
34
+ [isort-badge]: https://img.shields.io/badge/%20imports-isort-%231674b1?style=flat&labelColor=ef8336
35
+ [isort-url]: https://pycqa.github.io/isort/
11
36
 
12
37
  A robust and flexible library for creating GitHub Actions workflows, Jenkins pipelines, and AWS CodeBuild BuildSpecs programmatically in Python.
13
38
 
@@ -16,6 +41,7 @@ A robust and flexible library for creating GitHub Actions workflows, Jenkins pip
16
41
  - **Intuitive API**: Fluent and easy-to-use syntax
17
42
  - **Type Validation**: Built on Pydantic for automatic validation
18
43
  - **IDE Support**: Full autocompletion with type hints
44
+ - **Type Safety**: Complete mypy compliance with strict type checking
19
45
  - **Multi-Platform**: GitHub Actions, Jenkins, AWS CodeBuild
20
46
  - **AI Documentation**: Optional AI-powered README generation with Ollama
21
47
  - **Pipeline Visualization**: Automatic diagram generation with Graphviz
@@ -134,21 +160,7 @@ workflow.save(".github/workflows/hello.yml", generate_readme=True, generate_diag
134
160
  # Creates: hello.yml + hello_README.md + My_Workflow.png
135
161
  ```
136
162
 
137
- ### Legacy Import Style (Still Supported)
138
163
 
139
- ```python
140
- from workflowforge import (
141
- Workflow, Job,
142
- action, run,
143
- on_push, on_pull_request
144
- )
145
-
146
- # Create workflow (PascalCase classes)
147
- workflow = Workflow(
148
- name="My Workflow",
149
- on=on_push(branches=["main"])
150
- )
151
- ```
152
164
 
153
165
  ### Jenkins Pipeline Usage
154
166
 
@@ -249,26 +261,10 @@ from workflowforge import aws_codebuild as cb
249
261
  ✅ **Platform separation** - Clear namespace for each platform
250
262
  ✅ **Snake case naming** - Follows Python PEP 8 conventions
251
263
  ✅ **IDE autocompletion** - Better IntelliSense support
252
- ✅ **Backwards compatibility** - Old imports still work
253
- ✅ **Shorter code** - `gh.action()` vs `github_actions.action()`
254
-
255
- ### Migration Guide
256
264
 
257
- ```python
258
- # Old style (still works)
259
- from workflowforge import Workflow, Job, action, run, on_push
260
-
261
- workflow = Workflow(name="CI", on=on_push())
262
- job = Job(runs_on="ubuntu-latest")
263
- job.add_step(action("actions/checkout@v4"))
265
+ ✅ **Shorter code** - `gh.action()` vs `github_actions.action()`
264
266
 
265
- # New style (recommended)
266
- from workflowforge import github_actions as gh
267
267
 
268
- workflow = gh.workflow(name="CI", on=gh.on_push())
269
- job = gh.job(runs_on="ubuntu-latest")
270
- job.add_step(gh.action("actions/checkout@v4"))
271
- ```
272
268
 
273
269
  ## 🔧 Advanced Examples
274
270
 
@@ -0,0 +1,35 @@
1
+ # v1.0.0 — Stable Release
2
+
3
+ ## Summary
4
+ Stable 1.0.0 release of WorkflowForge. This promotes the library from beta to production-ready, fixes a release‑blocking CI matrix variable bug, and confirms clean tests across Python 3.11–3.13.
5
+
6
+ ## Highlights
7
+ - Type safety: Strict typing with mypy and Pydantic across modules
8
+ - Multi‑platform: Generate GitHub Actions, Jenkins, and AWS CodeBuild specs
9
+ - Quality gates: Black/Isort/Flake8/Mypy/pytest with coverage in CI
10
+ - Security: Bandit + Safety scans in CI; no embedded secrets detected
11
+ - Docs & visuals: Optional AI README with Ollama; automatic pipeline diagrams
12
+
13
+ ## Fixes
14
+ - Matrix variables: Use `matrix.python_version`/`matrix.node_version` (previously hyphenated). Aligned templates, examples, and CI
15
+ - Tests: Added assertions to enforce correct matrix variable references
16
+
17
+ ## Compatibility
18
+ - Python: 3.11, 3.12, 3.13
19
+ - Breaking changes: None since latest beta. Note older betas removed legacy top‑level imports in favor of platform‑specific modules
20
+
21
+ ## Upgrade Notes
22
+ - If you referenced old hyphenated matrix vars in custom workflows, update to `matrix.python_version` and `matrix.node_version`
23
+ - Regenerate example workflows to reflect v1.0.0 behavior
24
+
25
+ ## CI/CD & Publishing
26
+ - OIDC‑based publishing to PyPI on GitHub “release published” events
27
+ - TestPyPI publishes on `main` push
28
+
29
+ ## Security
30
+ - CI runs Bandit and Safety. Keep dependencies current to maintain posture
31
+
32
+ ## Links
33
+ - Changelog: CHANGELOG.md:10
34
+ - CI workflow: .github/workflows/publish.yml:19
35
+ - Version bump: pyproject.toml:7, src/workflowforge/__init__.py:13
@@ -0,0 +1,25 @@
1
+ # v1.1.0 — Azure DevOps CI Support
2
+
3
+ ## Summary
4
+ Adds first-class Azure DevOps Pipelines support for CI while keeping releases on GitHub Actions. Includes a Python matrix CI template with multi‑OS and caching, plus a minimal hello‑world pipeline.
5
+
6
+ ## What's New
7
+ - New module: `workflowforge.azure_devops`
8
+ - `pipeline`, `job`, `strategy(matrix)`, `task`, `script`
9
+ - YAML emitter with readable indentation
10
+ - Templates:
11
+ - `python_ci_template_azure(...)` — matrix over Python (3.11/3.12/3.13) and OS (Ubuntu/Windows/macOS) with pip caching via Cache@2
12
+ - `hello_world_template_azure(...)` — single job printing a message
13
+ - Examples:
14
+ - `examples/azure_devops/python_ci.yml` and generator `python_ci.py`
15
+ - `examples/azure_devops/hello_world.yml` and generator `hello_world.py`
16
+
17
+ ## CI/CD Strategy
18
+ - CI on Azure DevOps (build/lint/type/test)
19
+ - Release remains on GitHub Actions with:
20
+ - Tag/version guard (tag `vX.Y.Z` must match `pyproject.toml`)
21
+ - Idempotent publishing to PyPI/TestPyPI (`skip-existing: true`)
22
+
23
+ ## Upgrade Notes
24
+ - Import as: `from workflowforge import azure_devops as ado`
25
+ - Generate ADO CI: `ado.python_ci_template_azure().save("azure-pipelines.yml")`
@@ -4,13 +4,9 @@ This directory contains examples demonstrating the new modular import structure
4
4
 
5
5
  ## New Import Style
6
6
 
7
- Instead of importing everything from the main module:
7
+ Use the modular imports for a clear, type-safe API:
8
8
 
9
9
  ```python
10
- # Old style (still works)
11
- from workflowforge import Workflow, Job, action, run, on_push
12
-
13
- # New modular style (recommended)
14
10
  from workflowforge import github_actions
15
11
 
16
12
  workflow = github_actions.workflow(name="CI")
@@ -54,5 +50,4 @@ python examples/run_all_examples.py
54
50
  ✅ **Platform separation** - Clear namespace for each platform
55
51
  ✅ **Snake case naming** - Follows Python conventions
56
52
  ✅ **IDE autocompletion** - Better IntelliSense support
57
- ✅ **Backwards compatibility** - Old imports still work
58
53
  ✅ **Shorter aliases** - `gh = github_actions` for convenience
@@ -0,0 +1,23 @@
1
+ #!/usr/bin/env python3
2
+ """
3
+ Generate a minimal Azure DevOps pipeline that prints a hello message.
4
+ """
5
+
6
+ from workflowforge import azure_devops as ado
7
+
8
+
9
+ def main() -> None:
10
+ pipeline = ado.hello_world_template_azure(
11
+ name="Hello ADO",
12
+ message="Hello Azure DevOps from WorkflowForge!",
13
+ vm_image="ubuntu-latest",
14
+ branches=["main"],
15
+ )
16
+ pipeline.save("examples/azure_devops/hello_world.yml")
17
+ print(
18
+ "✅ Azure DevOps hello pipeline created: examples/azure_devops/hello_world.yml"
19
+ )
20
+
21
+
22
+ if __name__ == "__main__":
23
+ main()
@@ -0,0 +1,13 @@
1
+ # Do not modify - Generated with WorkflowForge
2
+ name: Hello ADO
3
+ trigger:
4
+ - main
5
+ pr:
6
+ - main
7
+ jobs:
8
+ - job: hello
9
+ pool:
10
+ vmImage: ubuntu-latest
11
+ steps:
12
+ - script: echo Hello Azure DevOps from WorkflowForge!
13
+ displayName: Say hello