-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpython-example.yml
More file actions
60 lines (53 loc) · 1.63 KB
/
python-example.yml
File metadata and controls
60 lines (53 loc) · 1.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# Example: Python Package CI/CD Pipeline
# =====================================
# Complete usage example for Python projects using the modernized automation templates
name: 🐍 Python CI/CD Pipeline (Automatic Release)
on:
push:
branches: [ main ]
paths-ignore:
- '.github/**'
- 'docs/**'
- '*.md'
- '*.MD'
pull_request:
branches: [ main ]
paths-ignore:
- '.github/**'
- 'docs/**'
- '*.md'
- '*.MD'
workflow_dispatch:
inputs:
security-engine:
description: 'Security scan engine'
type: choice
default: 'both'
options: ['gitleaks', 'gitguardian', 'both']
force-release:
description: 'Force create release'
type: boolean
default: false
skip-pypi:
description: 'Skip PyPI publishing'
type: boolean
default: false
python-version:
description: 'Python version to use'
type: string
default: '3.12'
jobs:
# Main Python CI/CD Pipeline using modular automation templates
python-pipeline:
name: 🐍 Python Release Pipeline
uses: bauer-group/automation-templates/.github/workflows/python-automatic-release.yml@main
with:
# Python Configuration
python-version: ${{ inputs.python-version || '3.12' }}
package-source-path: 'src' # Adjust to your package structure
# Security Configuration
security-engine: ${{ inputs.security-engine || 'both' }}
# Release Configuration
force-release: ${{ inputs.force-release || false }}
skip-pypi: ${{ inputs.skip-pypi || false }}
secrets: inherit