-
Notifications
You must be signed in to change notification settings - Fork 1
55 lines (45 loc) · 1.24 KB
/
python-automatic-release.yml
File metadata and controls
55 lines (45 loc) · 1.24 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
name: 🐍 CI/CD Pipeline (Automatic Release)
on:
# Trigger on push to main branch
push:
branches: [main]
paths-ignore:
- '.github/**'
- 'docs/**'
- '*.md'
- '*.MD'
# Trigger on pull requests to main
pull_request:
branches: [main]
paths-ignore:
- '.github/**'
- 'docs/**'
- '*.md'
- '*.MD'
# Manual trigger
workflow_dispatch:
inputs:
skip-pypi:
description: 'Skip PyPI publishing (GitHub release only)'
type: boolean
default: false
jobs:
python-release:
name: 🐍 Python Semantic Release Pipeline
uses: bauer-group/automation-templates/.github/workflows/python-semantic-release.yml@main
with:
# Python Configuration
python-version: '3.12' # or ['3.10', '3.11', '3.12'] for matrix
# Testing Configuration
run-tests: true
run-security-scan: true
# Security Configuration
security-engine: 'both' # gitleaks, gitguardian, both
# Build Configuration
build-local-wheel: true
# Release Configuration
skip-pypi: ${{ inputs.skip-pypi || false }}
# Documentation & Security Updates
update-documentation: true
update-security-policy: true
secrets: inherit