workflowforge 1.0b3__tar.gz → 1.0b5__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.

Potentially problematic release.


This version of workflowforge might be problematic. Click here for more details.

Files changed (61) hide show
  1. workflowforge-1.0b5/.github/pull_request_template.md +92 -0
  2. {workflowforge-1.0b3 → workflowforge-1.0b5}/.github/workflows/publish.yml +9 -6
  3. workflowforge-1.0b5/CHANGELOG.md +46 -0
  4. {workflowforge-1.0b3 → workflowforge-1.0b5}/PKG-INFO +128 -41
  5. {workflowforge-1.0b3 → workflowforge-1.0b5}/README.md +127 -40
  6. workflowforge-1.0b5/codebuild_spec.png +0 -0
  7. workflowforge-1.0b5/examples/README.md +58 -0
  8. workflowforge-1.0b5/examples/codebuild/buildspec.yml +19 -0
  9. workflowforge-1.0b5/examples/codebuild/node_app.py +44 -0
  10. workflowforge-1.0b5/examples/github_actions/basic_ci.py +31 -0
  11. workflowforge-1.0b5/examples/github_actions/basic_ci.yml +14 -0
  12. workflowforge-1.0b5/examples/github_actions/python_matrix.py +51 -0
  13. workflowforge-1.0b5/examples/github_actions/python_matrix.yml +28 -0
  14. workflowforge-1.0b5/examples/jenkins/Jenkinsfile +24 -0
  15. workflowforge-1.0b5/examples/jenkins/maven_build.py +35 -0
  16. {workflowforge-1.0b3 → workflowforge-1.0b5}/pyproject.toml +10 -1
  17. {workflowforge-1.0b3 → workflowforge-1.0b5}/src/workflowforge/__init__.py +9 -1
  18. workflowforge-1.0b5/src/workflowforge/github_actions_module.py +72 -0
  19. {workflowforge-1.0b3 → workflowforge-1.0b5}/src/workflowforge.egg-info/PKG-INFO +128 -41
  20. {workflowforge-1.0b3 → workflowforge-1.0b5}/src/workflowforge.egg-info/SOURCES.txt +13 -6
  21. workflowforge-1.0b3/examples/ai_documentation_example.py +0 -126
  22. workflowforge-1.0b3/examples/basic_workflow.py +0 -75
  23. workflowforge-1.0b3/examples/codebuild_example.py +0 -95
  24. workflowforge-1.0b3/examples/jenkins_advanced.py +0 -113
  25. workflowforge-1.0b3/examples/jenkins_example.py +0 -54
  26. workflowforge-1.0b3/examples/visualization_example.py +0 -169
  27. {workflowforge-1.0b3 → workflowforge-1.0b5}/.flake8 +0 -0
  28. {workflowforge-1.0b3 → workflowforge-1.0b5}/.gitignore +0 -0
  29. {workflowforge-1.0b3 → workflowforge-1.0b5}/.pre-commit-config.yaml +0 -0
  30. {workflowforge-1.0b3 → workflowforge-1.0b5}/AUTHORS.md +0 -0
  31. {workflowforge-1.0b3 → workflowforge-1.0b5}/LICENSE +0 -0
  32. {workflowforge-1.0b3 → workflowforge-1.0b5}/MANIFEST.in +0 -0
  33. {workflowforge-1.0b3 → workflowforge-1.0b5}/README_PRECOMMIT.md +0 -0
  34. {workflowforge-1.0b3 → workflowforge-1.0b5}/setup.cfg +0 -0
  35. {workflowforge-1.0b3 → workflowforge-1.0b5}/setup.py +0 -0
  36. {workflowforge-1.0b3 → workflowforge-1.0b5}/src/workflowforge/ai_documentation.py +0 -0
  37. {workflowforge-1.0b3 → workflowforge-1.0b5}/src/workflowforge/codebuild.py +0 -0
  38. {workflowforge-1.0b3 → workflowforge-1.0b5}/src/workflowforge/environment.py +0 -0
  39. {workflowforge-1.0b3 → workflowforge-1.0b5}/src/workflowforge/jenkins.py +0 -0
  40. {workflowforge-1.0b3 → workflowforge-1.0b5}/src/workflowforge/jenkins_plugins.py +0 -0
  41. {workflowforge-1.0b3 → workflowforge-1.0b5}/src/workflowforge/job.py +0 -0
  42. {workflowforge-1.0b3 → workflowforge-1.0b5}/src/workflowforge/schema_validation.py +0 -0
  43. {workflowforge-1.0b3 → workflowforge-1.0b5}/src/workflowforge/secrets.py +0 -0
  44. {workflowforge-1.0b3 → workflowforge-1.0b5}/src/workflowforge/step.py +0 -0
  45. {workflowforge-1.0b3 → workflowforge-1.0b5}/src/workflowforge/strategy.py +0 -0
  46. {workflowforge-1.0b3 → workflowforge-1.0b5}/src/workflowforge/templates.py +0 -0
  47. {workflowforge-1.0b3 → workflowforge-1.0b5}/src/workflowforge/triggers.py +0 -0
  48. {workflowforge-1.0b3 → workflowforge-1.0b5}/src/workflowforge/validation.py +0 -0
  49. {workflowforge-1.0b3 → workflowforge-1.0b5}/src/workflowforge/visualization.py +0 -0
  50. {workflowforge-1.0b3 → workflowforge-1.0b5}/src/workflowforge/workflow.py +0 -0
  51. {workflowforge-1.0b3 → workflowforge-1.0b5}/src/workflowforge.egg-info/dependency_links.txt +0 -0
  52. {workflowforge-1.0b3 → workflowforge-1.0b5}/src/workflowforge.egg-info/requires.txt +0 -0
  53. {workflowforge-1.0b3 → workflowforge-1.0b5}/src/workflowforge.egg-info/top_level.txt +0 -0
  54. {workflowforge-1.0b3 → workflowforge-1.0b5}/tests/__init__.py +0 -0
  55. {workflowforge-1.0b3 → workflowforge-1.0b5}/tests/test_ai_documentation.py +0 -0
  56. {workflowforge-1.0b3 → workflowforge-1.0b5}/tests/test_codebuild.py +0 -0
  57. {workflowforge-1.0b3 → workflowforge-1.0b5}/tests/test_jenkins.py +0 -0
  58. {workflowforge-1.0b3 → workflowforge-1.0b5}/tests/test_secrets.py +0 -0
  59. {workflowforge-1.0b3 → workflowforge-1.0b5}/tests/test_templates.py +0 -0
  60. {workflowforge-1.0b3 → workflowforge-1.0b5}/tests/test_validation.py +0 -0
  61. {workflowforge-1.0b3 → workflowforge-1.0b5}/tests/test_workflow.py +0 -0
@@ -0,0 +1,92 @@
1
+ # Pull Request
2
+
3
+ ## 📋 PR Summary
4
+ <!-- Provide a brief description of the changes in this PR -->
5
+
6
+ ### Related Issues
7
+ <!-- Link any related issues using keywords like "Fixes #123", "Closes #456", "Resolves #789" -->
8
+ - Fixes #
9
+ - Closes #
10
+ - Resolves #
11
+
12
+ ### Type of Change
13
+ <!-- Check the type of change your PR introduces -->
14
+ - [ ] 🐛 Bug fix (non-breaking change that fixes an issue)
15
+ - [ ] ✨ New feature (non-breaking change that adds functionality)
16
+ - [ ] 💥 Breaking change (fix or feature that would cause existing functionality to not work as expected)
17
+ - [ ] 📚 Documentation update
18
+ - [ ] 🔧 Refactoring (no functional changes)
19
+ - [ ] ⚡ Performance improvement
20
+ - [ ] 🧪 Test addition or improvement
21
+ - [ ] 🔨 Build/CI changes
22
+
23
+ ## 🔍 What Changed
24
+ <!-- Describe the changes in detail -->
25
+
26
+ ### Before
27
+ <!-- Describe the behavior before this change -->
28
+
29
+ ### After
30
+ <!-- Describe the behavior after this change -->
31
+
32
+ ## 🧪 Testing
33
+ <!-- Describe how you tested your changes -->
34
+ - [ ] Unit tests pass (`pytest tests/`)
35
+ - [ ] Code quality checks pass (`black`, `isort`, `flake8`, `mypy`)
36
+ - [ ] Security scan passes (`bandit`)
37
+ - [ ] Manual testing completed
38
+ - [ ] Examples work correctly
39
+
40
+ ### Test Evidence
41
+ <!-- Provide evidence of testing (screenshots, logs, etc.) -->
42
+
43
+ ## 📚 Documentation
44
+ - [ ] Code is self-documenting with clear variable/function names
45
+ - [ ] Docstrings added/updated for new functions/classes
46
+ - [ ] README updated if needed
47
+ - [ ] Examples updated if needed
48
+ - [ ] CHANGELOG.md updated
49
+
50
+ ## 🔒 Security & Performance
51
+ - [ ] No sensitive data exposed (credentials, tokens, etc.)
52
+ - [ ] No performance regressions introduced
53
+ - [ ] Dependencies are secure and up-to-date
54
+ - [ ] Error handling is appropriate
55
+
56
+ ## 🎯 Reviewer Guidance
57
+ <!-- Help reviewers understand what to focus on -->
58
+
59
+ ### Focus Areas
60
+ <!-- What should reviewers pay special attention to? -->
61
+ - [ ] Logic correctness
62
+ - [ ] Error handling
63
+ - [ ] Performance impact
64
+ - [ ] Security implications
65
+ - [ ] API design
66
+ - [ ] Documentation clarity
67
+
68
+ ### Testing Instructions
69
+ <!-- Step-by-step instructions for reviewers to test your changes -->
70
+ 1.
71
+ 2.
72
+ 3.
73
+
74
+ ## 📦 Deployment Notes
75
+ <!-- Any special considerations for deployment -->
76
+ - [ ] No database migrations required
77
+ - [ ] No configuration changes required
78
+ - [ ] Backward compatible
79
+ - [ ] Safe to deploy immediately
80
+
81
+ ## ✅ Pre-Merge Checklist
82
+ <!-- All items must be checked before merge -->
83
+ - [ ] PR title follows [Conventional Commits](https://www.conventionalcommits.org/) format
84
+ - [ ] All CI checks are passing
85
+ - [ ] Code has been reviewed and approved
86
+ - [ ] No merge conflicts
87
+ - [ ] Branch is up to date with target branch
88
+ - [ ] All conversations resolved
89
+
90
+ ---
91
+
92
+ **Note for Reviewers:** Please ensure all checklist items are completed before approving. Use "Request Changes" if any items are missing or if you have concerns.
@@ -23,10 +23,16 @@ jobs:
23
23
  name: Install pip
24
24
  - run: pip install -e .[dev]
25
25
  name: Install dependencies
26
+ - run: pip install types-PyYAML types-requests
27
+ name: Install type stubs
26
28
  - run: black --check src/ tests/
27
29
  name: Check code formatting
28
30
  - run: isort --check-only src/ tests/
29
31
  name: Check import sorting
32
+ - run: flake8 src/ tests/ examples/
33
+ name: Lint with flake8
34
+ - run: mypy src/
35
+ name: Type check with mypy
30
36
  - run: pytest tests/ --cov=workflowforge --cov-report=xml
31
37
  name: Run tests with coverage
32
38
  strategy:
@@ -84,8 +90,8 @@ jobs:
84
90
  - uses: pypa/gh-action-pypi-publish@release/v1
85
91
  name: Publish to TestPyPI
86
92
  with:
87
- repository: testpypi
88
- username: __token__
93
+ repository-url: https://test.pypi.org/legacy/
94
+ user: __token__
89
95
  password: ${{ secrets.TESTPYPI_API_TOKEN }}
90
96
  needs: build
91
97
  environment:
@@ -93,7 +99,7 @@ jobs:
93
99
  url: https://test.pypi.org/p/workflowforge
94
100
  permissions:
95
101
  id-token: write
96
- if: github.ref == 'refs/heads/main'
102
+ if: github.ref == 'refs/heads/main' && github.event_name == 'push'
97
103
  runs-on: ubuntu-latest
98
104
  publish-pypi:
99
105
  steps:
@@ -104,9 +110,6 @@ jobs:
104
110
  path: dist/
105
111
  - uses: pypa/gh-action-pypi-publish@release/v1
106
112
  name: Publish to PyPI
107
- with:
108
- username: __token__
109
- password: ${{ secrets.PYPI_API_TOKEN }}
110
113
  needs: build
111
114
  environment:
112
115
  name: pypi
@@ -0,0 +1,46 @@
1
+ # Changelog
2
+
3
+ All notable changes to WorkflowForge will be documented in this file.
4
+
5
+ ## [1.0b3] - 2024-12-26
6
+
7
+ ### Added
8
+ - **Modular Import Structure**: Platform-specific imports for better organization
9
+ - `from workflowforge import github_actions`
10
+ - `from workflowforge import jenkins_platform`
11
+ - `from workflowforge import aws_codebuild`
12
+ - **Snake Case Naming**: Following Python PEP 8 conventions
13
+ - `github_actions.workflow()` instead of `Workflow()`
14
+ - `github_actions.job()` instead of `Job()`
15
+ - All functions now use snake_case
16
+ - **Examples Directory**: Complete working examples for all platforms
17
+ - GitHub Actions: basic CI and Python matrix testing
18
+ - Jenkins: Maven build pipeline
19
+ - AWS CodeBuild: Node.js application build
20
+ - **Backwards Compatibility**: Legacy imports still supported
21
+
22
+ ### Changed
23
+ - README updated with new import structure and examples
24
+ - Documentation reflects snake_case naming convention
25
+ - Version bumped to 1.0b3
26
+
27
+ ### Fixed
28
+ - Circular import issues resolved
29
+ - All examples tested and working
30
+ - Automatic diagram generation for all platforms
31
+
32
+ ## [1.0b2] - 2024-12-26
33
+
34
+ ### Fixed
35
+ - PyPI publishing pipeline with API tokens
36
+ - Safety command updated from deprecated 'check' to 'scan'
37
+ - TestPyPI vs PyPI URL configuration
38
+
39
+ ## [1.0b1] - 2024-12-26
40
+
41
+ ### Added
42
+ - Initial release with GitHub Actions, Jenkins, and AWS CodeBuild support
43
+ - AI documentation generation with Ollama
44
+ - Pipeline visualization with Graphviz
45
+ - Comprehensive test suite
46
+ - PyPI publishing workflow
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: workflowforge
3
- Version: 1.0b3
3
+ Version: 1.0b5
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
@@ -37,6 +37,15 @@ 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)
48
+
40
49
  A robust and flexible library for creating GitHub Actions workflows, Jenkins pipelines, and AWS CodeBuild BuildSpecs programmatically in Python.
41
50
 
42
51
  ## ✨ Features
@@ -57,6 +66,20 @@ A robust and flexible library for creating GitHub Actions workflows, Jenkins pip
57
66
  pip install workflowforge
58
67
  ```
59
68
 
69
+ ## 📚 Examples
70
+
71
+ Check out the `examples/` directory for complete working examples:
72
+
73
+ ```bash
74
+
75
+ # Or run individual examples
76
+ python examples/github_actions/basic_ci.py
77
+ python examples/jenkins/maven_build.py
78
+ python examples/codebuild/node_app.py
79
+ ```
80
+
81
+ This will generate actual pipeline files and diagrams using the new import structure.
82
+
60
83
  ## 🤖 AI Documentation (Optional)
61
84
 
62
85
  WorkflowForge can automatically generate comprehensive README documentation for your workflows using **Ollama** (free local AI):
@@ -121,23 +144,21 @@ workflow.generate_diagram("pdf") # PDF document
121
144
 
122
145
  ## 📖 Basic Usage
123
146
 
147
+ ### New Modular Import Style (Recommended)
148
+
124
149
  ```python
125
- from workflowforge import (
126
- Workflow, Job,
127
- action, run,
128
- on_push, on_pull_request
129
- )
150
+ from workflowforge import github_actions
130
151
 
131
- # Create workflow
132
- workflow = Workflow(
152
+ # Create workflow using snake_case functions
153
+ workflow = github_actions.workflow(
133
154
  name="My Workflow",
134
- on=on_push(branches=["main"])
155
+ on=github_actions.on_push(branches=["main"])
135
156
  )
136
157
 
137
158
  # Create job
138
- job = Job(runs_on="ubuntu-latest")
139
- job.add_step(action("actions/checkout@v4", name="Checkout"))
140
- job.add_step(run("echo 'Hello World!'", name="Say Hello"))
159
+ job = github_actions.job(runs_on="ubuntu-latest")
160
+ job.add_step(github_actions.action("actions/checkout@v4", name="Checkout"))
161
+ job.add_step(github_actions.run("echo 'Hello World!'", name="Say Hello"))
141
162
 
142
163
  # Add job to workflow
143
164
  workflow.add_job("hello", job)
@@ -150,48 +171,63 @@ workflow.save(".github/workflows/hello.yml", generate_readme=True, generate_diag
150
171
  # Creates: hello.yml + hello_README.md + My_Workflow.png
151
172
  ```
152
173
 
153
- ### Jenkins Pipeline Usage
174
+ ### Legacy Import Style (Still Supported)
154
175
 
155
176
  ```python
156
177
  from workflowforge import (
157
- JenkinsPipeline, stage,
158
- agent_docker, pipeline
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"])
159
187
  )
188
+ ```
189
+
190
+ ### Jenkins Pipeline Usage
160
191
 
161
- # Create Jenkins pipeline
162
- jp = pipeline()
163
- jp.set_agent(agent_docker("maven:3.9.3-eclipse-temurin-17"))
192
+ ```python
193
+ from workflowforge import jenkins_platform
194
+
195
+ # Create Jenkins pipeline using snake_case
196
+ pipeline = jenkins_platform.pipeline()
197
+ pipeline.set_agent(jenkins_platform.agent_docker("maven:3.9.3-eclipse-temurin-17"))
164
198
 
165
199
  # Add stages
166
- build_stage = stage("Build")
200
+ build_stage = jenkins_platform.stage("Build")
167
201
  build_stage.add_step("mvn clean compile")
168
- jp.add_stage(build_stage)
202
+ pipeline.add_stage(build_stage)
169
203
 
170
- # Generate Jenkinsfile
171
- print(jp.to_jenkinsfile())
172
- jp.save("Jenkinsfile")
204
+ # Generate Jenkinsfile with diagram
205
+ pipeline.save("Jenkinsfile", generate_diagram=True)
206
+ # Creates: Jenkinsfile + jenkins_pipeline.png
173
207
  ```
174
208
 
175
209
  ### AWS CodeBuild BuildSpec Usage
176
210
 
177
211
  ```python
178
- from workflowforge import (
179
- buildspec, phase, environment, artifacts
180
- )
212
+ from workflowforge import aws_codebuild
181
213
 
182
- # Create BuildSpec
183
- spec = buildspec()
214
+ # Create BuildSpec using snake_case
215
+ spec = aws_codebuild.buildspec()
184
216
 
185
217
  # Add environment
186
- env = environment()
218
+ env = aws_codebuild.environment()
187
219
  env.add_variable("JAVA_HOME", "/usr/lib/jvm/java-17-openjdk")
188
220
  spec.set_env(env)
189
221
 
190
222
  # Add build phase
191
- build_phase = phase()
223
+ build_phase = aws_codebuild.phase()
192
224
  build_phase.add_command("mvn clean package")
193
225
  spec.set_build_phase(build_phase)
194
226
 
227
+ # Set artifacts
228
+ artifacts_obj = aws_codebuild.artifacts(["target/*.jar"])
229
+ spec.set_artifacts(artifacts_obj)
230
+
195
231
  # Generate buildspec.yml with AI documentation and diagram
196
232
  spec.save("buildspec.yml", generate_readme=True, use_ai=True, generate_diagram=True)
197
233
  # Creates: buildspec.yml + buildspec_README.md + codebuild_spec.png
@@ -229,18 +265,60 @@ else:
229
265
  print("Using template documentation (Ollama not running)")
230
266
  ```
231
267
 
268
+ ## 🆕 New Modular Import Structure
269
+
270
+ WorkflowForge now supports **platform-specific imports** with **snake_case naming** following Python conventions:
271
+
272
+ ### Platform Modules
273
+
274
+ ```python
275
+ # Import specific platforms
276
+ from workflowforge import github_actions, jenkins_platform, aws_codebuild
277
+
278
+ # Or use short aliases
279
+ from workflowforge import github_actions as gh
280
+ from workflowforge import jenkins_platform as jenkins
281
+ from workflowforge import aws_codebuild as cb
282
+ ```
283
+
284
+ ### Benefits
285
+
286
+ ✅ **Platform separation** - Clear namespace for each platform
287
+ ✅ **Snake case naming** - Follows Python PEP 8 conventions
288
+ ✅ **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
+
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"))
301
+
302
+ # New style (recommended)
303
+ from workflowforge import github_actions as gh
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
+
232
310
  ## 🔧 Advanced Examples
233
311
 
234
312
  ### Build Matrix Workflow
235
313
 
236
314
  ```python
237
- from workflowforge import matrix, strategy
315
+ from workflowforge import github_actions as gh
238
316
 
239
- job = Job(
317
+ job = gh.job(
240
318
  runs_on="ubuntu-latest",
241
- strategy=strategy(
242
- matrix=matrix(
243
- python_version=["3.8", "3.9", "3.10", "3.11"],
319
+ strategy=gh.strategy(
320
+ matrix=gh.matrix(
321
+ python_version=["3.11", "3.12", "3.13"],
244
322
  os=["ubuntu-latest", "windows-latest"]
245
323
  )
246
324
  )
@@ -250,12 +328,14 @@ job = Job(
250
328
  ### Multiple Triggers
251
329
 
252
330
  ```python
253
- workflow = Workflow(
331
+ from workflowforge import github_actions as gh
332
+
333
+ workflow = gh.workflow(
254
334
  name="CI/CD",
255
335
  on=[
256
- on_push(branches=["main"]),
257
- on_pull_request(branches=["main"]),
258
- on_schedule("0 2 * * *") # Daily at 2 AM
336
+ gh.on_push(branches=["main"]),
337
+ gh.on_pull_request(branches=["main"]),
338
+ gh.on_schedule("0 2 * * *") # Daily at 2 AM
259
339
  ]
260
340
  )
261
341
  ```
@@ -263,9 +343,13 @@ workflow = Workflow(
263
343
  ### Jobs with Dependencies
264
344
 
265
345
  ```python
266
- test_job = Job(runs_on="ubuntu-latest")
267
- deploy_job = Job(runs_on="ubuntu-latest").set_needs("test")
346
+ from workflowforge import github_actions as gh
347
+
348
+ test_job = gh.job(runs_on="ubuntu-latest")
349
+ deploy_job = gh.job(runs_on="ubuntu-latest")
350
+ deploy_job.needs = "test"
268
351
 
352
+ workflow = gh.workflow(name="CI/CD")
269
353
  workflow.add_job("test", test_job)
270
354
  workflow.add_job("deploy", deploy_job)
271
355
  ```
@@ -332,16 +416,19 @@ MIT License - see [LICENSE](LICENSE) for details.
332
416
  ## 🔗 Links
333
417
 
334
418
  **GitHub Actions:**
419
+
335
420
  - [GitHub Actions Documentation](https://docs.github.com/en/actions)
336
421
  - [Actions Marketplace](https://github.com/marketplace?type=actions)
337
422
  - [Workflow Syntax](https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions)
338
423
 
339
424
  **Jenkins:**
425
+
340
426
  - [Jenkins Documentation](https://www.jenkins.io/doc/)
341
427
  - [Pipeline Syntax](https://www.jenkins.io/doc/book/pipeline/syntax/)
342
428
  - [Jenkins Plugins](https://plugins.jenkins.io/)
343
429
 
344
430
  **AWS CodeBuild:**
431
+
345
432
  - [CodeBuild Documentation](https://docs.aws.amazon.com/codebuild/)
346
433
  - [BuildSpec Reference](https://docs.aws.amazon.com/codebuild/latest/userguide/build-spec-ref.html)
347
434
  - [CodeBuild Samples](https://docs.aws.amazon.com/codebuild/latest/userguide/samples.html)