Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: update gha workflows #25

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 7 additions & 9 deletions .github/workflows/license_tests.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
name: License tests
name: Run License Tests
on:
workflow_dispatch:
push:

workflow_dispatch:
pull_request:
branches:
- master
jobs:
license:
uses: openvoiceos/.github/.github/workflows/license_tests.yml@feat/shared_actions1
with:
branch: ${{ github.head_ref }}
action_branch: feat/shared_actions1
python_version: 3.10
license_tests:
uses: neongeckocom/.github/.github/workflows/license_tests.yml@master
34 changes: 24 additions & 10 deletions .github/workflows/propose_release.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,32 @@
name: Propose Stable Build
name: Propose Stable Release
on:
workflow_dispatch:
inputs:
release_type:
type: choice
description: Release Type
options:
- "patch"
- "minor"
- "major"

- build
- minor
- major
jobs:
build_and_publish:
uses: openvoiceos/.github/.github/workflows/propose_semver_release.yml@feat/shared_actions1
update_version:
uses: neongeckocom/.github/.github/workflows/propose_semver_release.yml@master
with:
release_type: ${{ inputs.release_type }}
version_file: version.py
alpha_var: VERSION_ALPHA
build_var: VERSION_BUILD
minor_var: VERSION_MINOR
major_var: VERSION_MAJOR
update_changelog: True
branch: dev

pull_changes:
needs: update_version
uses: neongeckocom/.github/.github/workflows/pull_master.yml@master
with:
python_version: "3.10"
version_file: skill_randomness/version.py
release_type: ${{inputs.release_type}} # build, minor, major
pr_assignee: ${{ github.actor }}
pr_draft: false
pr_title: ${{ needs.update_version.outputs.version }}
pr_body: ${{ needs.update_version.outputs.changelog }}
17 changes: 0 additions & 17 deletions .github/workflows/propose_translation.yml

This file was deleted.

23 changes: 14 additions & 9 deletions .github/workflows/publish_alpha.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This workflow will generate a distribution and upload it to PyPI

name: Publish Alpha Build ...aX
on:
push:
Expand All @@ -6,23 +8,26 @@ on:
paths-ignore:
- "version.py"
- "test/**"
- "examples/**"
- ".github/**"
- ".gitignore"
- "LICENSE"
- "CHANGELOG.md"
- "MANIFEST.in"
- "skill.json"
- "README.md"
- "scripts/**"
workflow_dispatch:

jobs:
build_and_publish:
uses: openvoiceos/.github/.github/workflows/publish_alpha_release.yml@feat/shared_actions1
secrets: inherit
publish_alpha_release:
uses: neongeckocom/.github/.github/workflows/publish_alpha_release.yml@master
secrets:
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
with:
version_file: version.py # File location of the version file, default: version.py
python_version: "3.10"
locale_folder: locale
update_intentfile: test/test_intents.yaml
changelog_file: CHANGELOG.md
version_file: "version.py"
publish_prerelease: true
update_changelog: true
alpha_var: VERSION_ALPHA
build_var: VERSION_BUILD
minor_var: VERSION_MINOR
major_var: VERSION_MAJOR
8 changes: 3 additions & 5 deletions .github/workflows/publish_release.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
# This workflow will generate a release distribution and upload it to PyPI

name: publish_release
name: Publish Build and GitHub Release
on:
push:
branches:
- master
- main

jobs:
build_and_publish_pypi_and_release:
permissions:
contents: write
packages: write
uses: neongeckocom/.github/.github/workflows/publish_stable_release.yml@master
secrets:
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
37 changes: 19 additions & 18 deletions .github/workflows/skill_tests.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,24 @@
name: skill_tests
# This workflow will run unit tests

name: Test Skill
on:
pull_request: {}
workflow_dispatch: {}
pull_request:
workflow_dispatch:

jobs:
py_build_tests:
name: py_build_tests
permissions:
contents: read
uses: openvoiceos/.github/.github/workflows/python_build_tests.yml@feat/shared_actions1
with:
python_matrix: '[3.9, "3.10", "3.11"]'
uses: neongeckocom/.github/.github/workflows/python_build_tests.yml@master
skill_unit_tests:
name: skill_unit_tests
permissions:
contents: read
uses: openvoiceos/.github/.github/workflows/pytest_file_or_dir.yml@feat/shared_actions1
uses: neongeckocom/.github/.github/workflows/skill_tests.yml@master
with:
neon_versions: "[3.8, 3.9, '3.10', '3.11', '3.12']"
ovos_versions: "[3.8, 3.9, '3.10', '3.11', '3.12']"
skill_intent_tests:
uses: neongeckocom/.github/.github/workflows/skill_test_intents.yml@master
with:
action_branch: feat/shared_actions1
test_location: test
python_matrix: '[3.9, "3.10", "3.11"]'
is_skill: true
upload_coverage: true
test_padacioso: false
test_padatious: true
neon_versions: "[3.8, 3.9, '3.10', '3.11', '3.12']"
ovos_versions: "[3.8, 3.9, '3.10', '3.11', '3.12']"
skill_resource_tests:
uses: neongeckocom/.github/.github/workflows/skill_test_resources.yml@master
12 changes: 0 additions & 12 deletions .github/workflows/test_resources.yml

This file was deleted.

1 change: 0 additions & 1 deletion .github/workflows/update_skill_json.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

name: update_skill_json
on:
push: {}
Expand Down
6 changes: 3 additions & 3 deletions skill.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"title": "Laugh",
"url": "https://github.com/OpenVoiceOS/ovos-skill-laugh",
"url": "https://github.com/mikejgray/skill-laugh",
NeonDaniel marked this conversation as resolved.
Show resolved Hide resolved
"summary": "![Python](https://img.shields.io/badge/python-3.8-blue.svg) ![Python](https://img.shields.io/badge/python-3.9-blue.svg) ![Python](https://img.shields.io/badge/python-3.10-blue.svg) ![Python](https://img.shields.io/badge/python-3.11-blue.svg) Makes your voice assistant laugh like a maniac ![A ghostly face, laughing evilly.](./sshot.png)",
"short_description": "![Python](https://img.shields.io/badge/python-3.8-blue.svg) ![Python](https://img.shields.io/badge/python-3.9-blue.svg) ![Python](https://img.shields.io/badge/python-3.10-blue.svg) ![Python](https://img.shields.io/badge/python-3.11-blue.svg) Makes your voice assistant laugh like a maniac ![A ghostly face, laughing evilly.](./sshot.png)",
"description": "Laugh randomly or when requested.",
Expand Down Expand Up @@ -48,8 +48,8 @@
"- [SoundBible](http://soundbible.com/suggest.php?q=laugh&x=0&y=0)",
"- [FreeSound](https://freesound.org/search/?q=female+evil+laugh)"
],
"skillname": "ovos-skill-laugh",
"authorname": "OpenVoiceOS",
"skillname": "skill-laugh",
NeonDaniel marked this conversation as resolved.
Show resolved Hide resolved
"authorname": "mikejgray",
"foldername": null,
"settings": "~/.config/ovos/skills/skill-laugh.openvoiceos/settings.json ~/.config/neon/skills/skill-laugh.openvoiceos/settings.json ```json { \"gender\": \"robot\", // or \"male\" or \"female\" \"haunted\": false, // default true, \"mine is an evil laugh\" \"sounds_dir\": \"/home/neon/venv/lib/python3.10/site-packages/skill_laugh/sounds\", // default on a Neon setup, can be set to anything OVOS/Neon can access \"__mycroft_skill_firstrun\": false } ```"
}
Loading