Skip to content

Commit

Permalink
1.1.0 (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
NeonDaniel authored Apr 9, 2024
2 parents 1a589e2 + 3b2ba83 commit 2d28d5a
Show file tree
Hide file tree
Showing 10 changed files with 80 additions and 11 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/skill_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ jobs:
uses: neongeckocom/.github/.github/workflows/python_build_tests.yml@master
# skill_unit_tests:
# uses: neongeckocom/.github/.github/workflows/skill_tests.yml@master
# skill_intent_tests:
# uses: neongeckocom/.github/.github/workflows/skill_test_intents.yml@master
skill_intent_tests:
uses: neongeckocom/.github/.github/workflows/skill_test_intents.yml@master
# skill_resource_tests:
# uses: neongeckocom/.github/.github/workflows/skill_test_resources.yml@master
skill_install_tests:
Expand Down
15 changes: 11 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,20 @@
# Changelog

## [0.1.1a2](https://github.com/NeonGeckoCom/skill-spelling/tree/0.1.1a2) (2023-06-15)
## [1.0.1a2](https://github.com/NeonGeckoCom/skill-spelling/tree/1.0.1a2) (2024-04-02)

[Full Changelog](https://github.com/NeonGeckoCom/skill-spelling/compare/0.1.0...0.1.1a2)
[Full Changelog](https://github.com/NeonGeckoCom/skill-spelling/compare/1.0.1a1...1.0.1a2)

**Merged pull requests:**

- Update GH automation to best practices [\#23](https://github.com/NeonGeckoCom/skill-spelling/pull/23) ([NeonDaniel](https://github.com/NeonDaniel))
- Deprecate `create_skill` method and `__init__` for best practices [\#21](https://github.com/NeonGeckoCom/skill-spelling/pull/21) ([NeonDaniel](https://github.com/NeonDaniel))
- Add intent tests [\#26](https://github.com/NeonGeckoCom/skill-spelling/pull/26) ([NeonDaniel](https://github.com/NeonDaniel))

## [1.0.1a1](https://github.com/NeonGeckoCom/skill-spelling/tree/1.0.1a1) (2024-02-05)

[Full Changelog](https://github.com/NeonGeckoCom/skill-spelling/compare/1.0.0...1.0.1a1)

**Merged pull requests:**

- Support ovos-utils 0.1 [\#25](https://github.com/NeonGeckoCom/skill-spelling/pull/25) ([NeonDaniel](https://github.com/NeonDaniel))



Expand Down
4 changes: 2 additions & 2 deletions __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
from ovos_utils import classproperty
from ovos_utils.process_utils import RuntimeRequirements

from mycroft import intent_handler
from ovos_workshop.decorators import intent_handler


class SpellingSkill(NeonSkill):
Expand All @@ -61,7 +61,7 @@ def runtime_requirements(self):
no_network_fallback=True,
no_gui_fallback=True)

@intent_handler(IntentBuilder("Spell").require("Spell").require("Word"))
@intent_handler(IntentBuilder("SpellIntent").require("Spell").require("Word"))
def handle_spell(self, message):
if not self.neon_in_request(message):
return
Expand Down
4 changes: 3 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
neon-utils~=1.0
ovos_utils~=0.0.28
ovos-utils~=0.0, >=0.0.28
ovos-workshop~=0.0.15
adapt-parser<2.0,>=0.5
1 change: 1 addition & 0 deletions requirements/test.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
neon-minerva[padatious]~=0.2
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ def find_resource_files():
url=f'https://github.com/NeonGeckoCom/{SKILL_NAME}',
license='BSD-3-Clause',
install_requires=get_requirements("requirements.txt"),
extras_require={"test": get_requirements("requirements/test.txt")},
author='Neongecko',
author_email='[email protected]',
long_description=long_description,
Expand Down
4 changes: 3 additions & 1 deletion skill.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@
"systemDeps": false,
"requirements": {
"python": [
"adapt-parser<2.0,>=0.5",
"neon-utils~=1.0",
"ovos_utils~=0.0.28"
"ovos-utils~=0.0, >=0.0.28",
"ovos-workshop~=0.0.15"
],
"system": {},
"skill": []
Expand Down
35 changes: 35 additions & 0 deletions test/test_intents.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Specify intents to test here. Valid test cases are as follows:

# Basic intent match tests only:
#lang:
# intent_name:
# - example utterance
# - other example utterance

# Intent tests with expected vocab/entity matches:
#lang:
# intent_name:
# - example_utterance:
# - expected vocab name
# - other expected vocab name

# Intent tests with specific vocab/entity extraction tests:
#lang:
# intent_name:
# - example_utterance:
# - expected_vocab_key: expected_vocab_value
# - expected_entity_key: expected_entity_value


en-us:
SpellIntent:
- spell something:
- Word: something
- how do you spell the word excellent:
- Word: excellent

unmatched intents:
en-us:
- how do you spell
- what is a spell
- can you spell
21 changes: 21 additions & 0 deletions test/test_resources.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Specify resources to test here.

# Specify languages to be tested
languages:
- "en-us"

# vocab is lowercase .voc file basenames
vocab:
- spell

# dialog is .dialog file basenames (case-sensitive)
dialog: []
# regex entities, not necessarily filenames
regex:
- Word
intents:
# Padatious intents are the `.intent` file names
padatious: []
# Adapt intents are the name passed to the constructor
adapt:
- SpellIntent
2 changes: 1 addition & 1 deletion version.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@
# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

__version__ = "1.0.0"
__version__ = "1.1.0"

0 comments on commit 2d28d5a

Please sign in to comment.