Skip to content

Commit a954012

Browse files
JarbasAlclaude
andcommitted
ci: add standard GitHub Actions workflows
AI-Generated Change: - Model: claude-sonnet-4-6 - Intent: add missing CI/CD workflows - Impact: added build-tests, coverage, lint, license_check, pip_audit, repo-health, release-preview, release_workflow, publish_stable, opm-check, conventional-label; also added sympy to test extras to fix test_quantize_success - Verified via: reviewed gh-automations workflow inputs for build-tests and coverage Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent c99c9cf commit a954012

12 files changed

Lines changed: 163 additions & 1 deletion

.github/workflows/build-tests.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Build Tests
2+
3+
on:
4+
pull_request:
5+
branches: [dev, master, main]
6+
workflow_dispatch:
7+
8+
jobs:
9+
build:
10+
uses: OpenVoiceOS/gh-automations/.github/workflows/build-tests.yml@dev
11+
secrets: inherit
12+
with:
13+
python_versions: '["3.10", "3.11", "3.12", "3.13"]'
14+
install_extras: 'test,ovos'
15+
test_path: 'test'
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# auto add labels to PRs
2+
on:
3+
pull_request_target:
4+
types: [ opened, edited ]
5+
name: conventional-release-labels
6+
jobs:
7+
label:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: bcoe/conventional-release-labels@v1

.github/workflows/coverage.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Code Coverage
2+
3+
on:
4+
pull_request:
5+
branches: [dev]
6+
workflow_dispatch:
7+
8+
jobs:
9+
coverage:
10+
uses: OpenVoiceOS/gh-automations/.github/workflows/coverage.yml@dev
11+
secrets: inherit
12+
with:
13+
python_version: '3.11'
14+
coverage_source: 'markovonnx'
15+
install_extras: '-e .[test,ovos]'
16+
test_path: 'test'
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: License Check
2+
3+
on:
4+
pull_request:
5+
branches: [dev]
6+
workflow_dispatch:
7+
8+
jobs:
9+
license_check:
10+
uses: OpenVoiceOS/gh-automations/.github/workflows/license-check.yml@dev
11+
secrets: inherit

.github/workflows/lint.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Lint
2+
3+
on:
4+
pull_request:
5+
branches: [dev, master, main]
6+
workflow_dispatch:
7+
8+
jobs:
9+
lint:
10+
runs-on: ubuntu-latest
11+
continue-on-error: true
12+
steps:
13+
- uses: actions/checkout@v4
14+
- uses: actions/setup-python@v5
15+
with:
16+
python-version: '3.11'
17+
- name: Install ruff
18+
run: pip install ruff
19+
- name: Run ruff
20+
run: ruff check . || true

.github/workflows/opm-check.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: OPM Check
2+
3+
on:
4+
pull_request:
5+
branches: [dev, master, main]
6+
workflow_dispatch:
7+
8+
jobs:
9+
opm_check:
10+
uses: OpenVoiceOS/gh-automations/.github/workflows/opm-check.yml@dev
11+
secrets: inherit
12+
with:
13+
plugin_type: 'auto'

.github/workflows/pip_audit.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: PIP Audit
2+
3+
on:
4+
pull_request:
5+
branches: [dev]
6+
workflow_dispatch:
7+
8+
jobs:
9+
pip_audit:
10+
uses: OpenVoiceOS/gh-automations/.github/workflows/pip-audit.yml@dev
11+
secrets: inherit
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Publish Stable Release
2+
3+
on:
4+
workflow_dispatch:
5+
pull_request:
6+
types: [closed]
7+
branches: [master, main]
8+
9+
jobs:
10+
publish_stable:
11+
if: github.event.pull_request.merged == true || github.event_name == 'workflow_dispatch'
12+
uses: OpenVoiceOS/gh-automations/.github/workflows/publish-stable.yml@dev
13+
secrets: inherit
14+
with:
15+
version_file: 'markovonnx/version.py'
16+
publish_pypi: true
17+
notify_matrix: true
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Release Preview
2+
3+
on:
4+
pull_request:
5+
branches: [dev]
6+
workflow_dispatch:
7+
8+
jobs:
9+
release_preview:
10+
uses: OpenVoiceOS/gh-automations/.github/workflows/release-preview.yml@dev
11+
secrets: inherit
12+
with:
13+
package_name: 'markovonnx'
14+
version_file: 'markovonnx/version.py'
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Release Alpha and Propose Stable
2+
3+
on:
4+
workflow_dispatch:
5+
pull_request:
6+
types: [closed]
7+
branches: [dev]
8+
9+
jobs:
10+
publish_alpha:
11+
if: github.event.pull_request.merged == true || github.event_name == 'workflow_dispatch'
12+
uses: OpenVoiceOS/gh-automations/.github/workflows/publish-alpha.yml@dev
13+
secrets: inherit
14+
with:
15+
branch: 'dev'
16+
version_file: 'markovonnx/version.py'
17+
update_changelog: true
18+
publish_prerelease: true
19+
propose_release: true
20+
changelog_max_issues: 100
21+
publish_pypi: true
22+
notify_matrix: true

0 commit comments

Comments
 (0)