Skip to content

Reusable Workflow Reference: Skill Test Workflows

In a nutshell

This page documents the shared workflows that execute skill tests: ovoscope.yml for hand-written end-to-end skill tests, intent-case-tests.yml for the bulk generated intent-routing accuracy matrix, and tts-intelligibility.yml for synthesize-then-transcribe TTS scoring. For build and OVOS-plugin (OPM) checks, see Build Checks and Plugin, License, and Repo Checks. For skill-packaging checks, see Skill and Locale Checks. Start with the gh-automations overview for the big picture, or the full Workflow Reference index.

All reusable workflows are in .github/workflows/ and are called via:

uses: OpenVoiceOS/gh-automations/.github/workflows/<name>.yml@dev

Ref: Always use @dev.

Workflows on this page:


ovoscope.yml

Runs ovoscope end-to-end skill tests on a single Python version. Installs the skill with its test extras (which must include ovoscope), then executes pytest against the end-to-end test directory. Posts a ๐Ÿ”Œ Skill Tests (ovoscope) section to the OVOS PR Checks comment.

Source: .github/workflows/ovoscope.yml

Inputs

Input Type Default Description
gh_automations_ref string dev Branch or sha of OpenVoiceOS/gh-automations to take the helper scripts from. A caller testing a gh-automations branch passes that branch here so the scripts match the workflow it calls.
uv_prerelease string allow uv prerelease resolution mode (allow | if-necessary | explicit | disallow). Defaults to "allow": the OVOS ecosystem ships pre-1.0 alphas and relies on prerelease floor-pins resolving the way pip did.
test_timeout number 600 Seconds a single test may take before pytest-timeout fails it and dumps its stack. The first test that boots a MiniCroft pays the Padatious compile: a measured two-skill boot with 37 intents took 486 s on a cold cache and 21 s warm. The old default of 180 s cut that boot and reported a hang that was not one, so the default is 600 s, above the measured cold cost. The step ceiling is timeout_minutes minus five, so this default only fits when timeout_minutes is 16 or more; below that the step is cut before any per-test timeout can fire, and the job reports a cut rather than naming a test. A caller that lowers timeout_minutes lowers test_timeout with it. With the intent cache restored the same test returns in seconds; a real hang still names the test instead of taking the job with it.
timeout_minutes number 30 Ceiling for the whole job. Most healthy runs take one to three minutes and the slowest measured across the fleet takes ten, so thirty leaves that one three times its room while a hung run still reports within the hour rather than at the runner's own limit. The test step runs under its own timeout five minutes below this, so the log says the run was cut.
pytest_workers string 2 pytest-xdist worker count for the e2e suite. Each worker boots its own in-process MiniCroft and trains its own intent engines. The default is 2: with "auto" (4 workers on ubuntu-latest) the parallel trainers starved each other, and utterances returned ovos.intent.unmatched or a worker crashed. A repository can set a higher value or "auto". "0" runs serially (disable xdist).
runner string ubuntu-latest Runner label
python_version string 3.11 Python version to use
system_deps string "" Extra apt packages to install before testing (space-separated)
install_extras string test Extra dependencies used when installing the package; the extras must pull in ovoscope (e.g. ovoscope>=0.7.0 in [test]). Accepts a bare extras name ('test'), a bracketed list ('[dev,test]'), a full target ('.[test]'), or raw pip arguments ('-r requirements/test.txt').
pre_install_pip string "" Optional space-separated pip requirement specs to install BEFORE the package install step. Use to override transitive deps with git URLs (e.g. to test against an unreleased sibling package). Mirrors the build-tests workflow input.
post_install_pip string "" Optional space-separated pip requirement specs installed AFTER the package + test-extras install, with --force-reinstall --no-deps so the dependency resolver cannot revert them. Use to pin an unreleased prerelease (e.g. a sibling at the same version as a published wheel) that the test-extras resolution would otherwise downgrade.
test_path string test/end2end/ Path passed to pytest โ€” should point at the end2end directory
require_adapt boolean false Auto-install ovos-adapt-pipeline-plugin and fail CI if installation fails. When false, Adapt pipeline tests are skipped if the plugin is absent.
require_padatious boolean false Auto-install ovos-padatious (PyPI name) and fail CI if installation fails. When false, Padatious pipeline tests are skipped if the plugin is absent.
require_m2v boolean false Auto-install ovos-m2v-pipeline and fail CI if installation fails. When false, M2V pipeline tests are skipped if the plugin is absent.
require_nebulento boolean false Auto-install nebulento and fail CI if installation fails. When false, nebulento pipeline tests are skipped if the plugin is absent.
require_palavreado boolean false Auto-install palavreado and fail CI if installation fails. When false, palavreado pipeline tests are skipped if the plugin is absent.
pre_release boolean false Install ovoscope and every required pipeline plugin at its latest PyPI prerelease instead of a floor-pinned version. Use to validate against unreleased changes in the framework or any engine. Affects ovoscope itself (always upgraded to the latest PyPI prerelease when this flag is set) and the engines gated by require_adapt / require_padatious / require_m2v / require_nebulento / require_palavreado.
bus_coverage boolean true Enable bus-level message coverage tracking
bus_coverage_include string "" Regex pattern of skill_ids to include in bus coverage report
bus_coverage_exclude string ^Thread-|^intents$|^skills$|^__core__$ Regex pattern of skill_ids to exclude from bus coverage report
pr_comment boolean true Post a '๐Ÿ”Œ Skill Tests (ovoscope)' section in the OVOS PR Checks comment. Only runs on pull_request events.
intent_cache boolean true Restore and save the Padatious intent cache between runs. Padatious compiles every intent with FANN on a cold cache: a measured two-skill MiniCroft with 37 intents took 486 s cold and 21 s warm from the cache the first run wrote (388 files, 2.3 MB). The cache holds a .hash and a .net per intent, so an entry whose intent text changed is retrained and the rest is reused.
intent_cache_lang string en-US The locale the cache key names. Padatious keeps one directory per language, so a repository that tests another locale names it here and does not share a key with the en-US runs.

Jobs

Job Description
ovoscope Installs system deps, then installs the package with test extras plus ovoscope and pytest-json-report. Runs a pipeline availability check (fails fast if require_* inputs are true and the plugin is absent). Executes pytest with --json-report, formats the results, and posts the PR comment section.

Steps

Step Description
Checkout Checks out the calling repo
Checkout gh-automations scripts Checks out OpenVoiceOS/gh-automations@dev into _gh_automations/ (PR events only)
Setup Python actions/setup-python@v6
Install System Dependencies apt-get install the system_deps list (skipped if empty)
Install Package with Test Extras pip install ".[test]" (or the configured extras) plus pytest pytest-json-report ovoscope
Check required pipeline availability Inline Python reads opm.pipeline entry points and exits 1 if any require_* pipeline is absent
Run ovoscope tests pytest --json-report with continue-on-error: true so the PR comment step always runs
Format ovoscope section for PR comment Inline Python reads the JSON report and generates ovoscope-section.md grouped by test class
Post ovoscope section to PR comment Calls update_pr_comment.py with --section-id ovoscope
Fail job if tests failed Re-raises the pytest failure after the PR comment is posted

PR comment content

โœ… 9/9 passed

โœ… **TestConfuciusAdaptEN** โ€” 5/5
โœ… **TestConfuciusPadaciosaEN** โ€” 2/2
โœ… **TestConfuciusFixtures** โ€” 2/2

On failure, failing classes expand to a per-test table with longrepr for the first 3 failures.

Typical usage

name: Ovoscope End-to-End Tests
on:
  pull_request:
    branches: [dev]
  workflow_dispatch:

jobs:
  ovoscope:
    uses: OpenVoiceOS/gh-automations/.github/workflows/ovoscope.yml@dev
    secrets: inherit
    with:
      test_path: "test/end2end/"
      require_adapt: true

To require Padatious:

    with:
      test_path: "test/end2end/"
      require_adapt: true
      require_padatious: true

Notes

  • The require_* inputs trigger a pre-test pipeline availability check. If the required plugin is absent the job fails immediately with a clear error message, without running any tests.

  • The pipeline check reads the opm.pipeline entry point group using importlib.metadata, no import of the plugin itself is required.

  • PADACIOSO_PIPELINE (pure Python padacioso) is always available via ovos-workshop. There is no require_padacioso input.

  • Set require_adapt: true in skill repos that test Adapt intents. This makes CI fail explicitly if the Adapt plugin is missing from [test] deps, rather than silently skipping those tests.


intent-case-tests.yml

Runs the file-based ovoscope intent-routing accuracy matrix. Each <IntentName>.intent.test / no_match.test file under cases/<lang>/ is run through every pipeline, producing one test per (pipeline, lang, utterance). Sharded by language (one matrix job per lang) so large suites don't time out. Posts a ๐ŸŽฏ Intent-Case Accuracy section.

Use alongside ovoscope.yml: ovoscope.yml for hand-written E2E tests and bus coverage, intent-case-tests.yml for the bulk generated intent-routing matrix.

Source: .github/workflows/intent-case-tests.yml

Inputs

Input Type Default Description
gh_automations_ref string dev Branch or sha of OpenVoiceOS/gh-automations to take the helper scripts from. A caller testing a gh-automations branch passes that branch here so the scripts match the workflow it calls.
uv_prerelease string allow uv prerelease resolution mode (allow | if-necessary | explicit | disallow). Defaults to "allow": the OVOS ecosystem ships pre-1.0 alphas and relies on prerelease floor-pins resolving the way pip did.
runner string ubuntu-latest
python_version string 3.11
system_deps string "" Extra apt packages to install before testing (space-separated)
install_extras string test Extra dependencies used when installing the package; must pull in ovoscope. Accepts a bare extras name ('test'), a bracketed list ('[dev,test]'), a full target ('.[test]'), or raw pip arguments ('-r requirements/test.txt').
test_path string test/end2end/ Path passed to pytest. Default test/end2end/ collects the whole end2end suite; ovoscope's intent-case auto-discovery picks up the shim file (ovoscope_intent_cases = {...}) inside it.
require_adapt boolean false
require_padatious boolean false
require_m2v boolean false
require_nebulento boolean false
require_palavreado boolean false
pre_release boolean false Install ovoscope and every required pipeline plugin from its GitHub dev branch instead of PyPI.
pr_comment boolean true Post a '๐ŸŽฏ Intent-Case Accuracy' section per shard in the OVOS PR Checks comment (only on pull_request).
langs string ["all"] JSON array of language tags. One matrix job per lang. Each shard passes -k '<slug>' to pytest (slug = lang.replace('-', '_')) so only tests whose nodeid contains that slug run there. Pass the skill's locale list verbatim, e.g. '["en-US", "de-DE", "pt-PT"]'. The default ["all"] runs the entire suite in a single job.
accuracy_baseline string "" Path (relative to the skill repo root) of a previously-saved intent-accuracy report JSON. When supplied, the run fails on regressed (was-pass โ†’ now-fail) cases.
accuracy_tolerant boolean false Downgrade individual case failures to xfail. Only the aggregate gate (accuracy_min / regression list) can block the session.
accuracy_min string "" Minimum overall pass rate (0.0-1.0). Fails the shard when the observed rate is below this value.

tts-intelligibility.yml

End-to-end TTS intelligibility scoring. Synthesises speech with the TTS plugin under test, transcribes it back with a reference STT (faster-whisper tiny), and scores the round-trip with WER/CER. Posts a ๐Ÿ—ฃ๏ธ TTS Intelligibility section. Gates by default, the job fails when mean WER exceeds max_wer or the test errors. Set warn_only: true for engines/langs still being tuned.

Source: .github/workflows/tts-intelligibility.yml

Inputs

Input Type Default Description
gh_automations_ref string dev Branch or sha of OpenVoiceOS/gh-automations to take the helper scripts from. A caller testing a gh-automations branch passes that branch here so the scripts match the workflow it calls.
uv_prerelease string allow uv prerelease resolution mode (allow | if-necessary | explicit | disallow). Defaults to "allow": the OVOS ecosystem ships pre-1.0 alphas and relies on prerelease floor-pins resolving the way pip did.
runner string ubuntu-latest Runner label
python_version string 3.11 Python version to use
system_deps string "" Extra apt packages to install before testing (space-separated), e.g. 'espeak-ng sox'. Engines backed by a system binary need this.
pre_test_command string "" Command run after the package is installed and before pytest, in the repository root. For test dependencies that are not pip packages: a model download, a generated fixture, a service the tests talk to.
install_extras string test Extra dependencies used when installing the package; the extras should pull in ovoscope[tts]. Accepts a bare extras name ('test'), a bracketed list ('[dev,test]'), a full target ('.[test]'), or raw pip arguments ('-r requirements/test.txt').
test_path string test/end2end/test_tts_intelligibility.py Path passed to pytest โ€” the intelligibility test file
timeout_minutes number 45 Ceiling for the whole job. A healthy run synthesises and transcribes a handful of sentences in a few minutes; this leaves room for a cold model cache and still reports within the hour. The test step runs under its own timeout five minutes below this, so the log can say the run was cut instead of the runner killing the job silently.
max_wer string 0.5 Intelligibility gate (exported as TTS_MAX_WER): the test fails when the mean word-error-rate of the STT round-trip exceeds this. Default 0.5 โ€” more than half the words wrong is treated as unintelligible. Raise it per-plugin for engines/voices/low-resource langs the reference STT transcribes weakly; lower it to tighten the bar.
pre_release boolean false Install ovoscope[tts] from its GitHub dev branch instead of PyPI. Use to validate against unreleased ovoscope changes.
pr_comment boolean true Post a '๐Ÿ—ฃ๏ธ TTS Intelligibility' section in the OVOS PR Checks comment. Only runs on pull_request events.
warn_only boolean false When false (default), the check GATES: an unintelligible round-trip (mean WER > max_wer) or a test-process error fails the PR. Set true to downgrade to report-only โ€” the score is still posted to the PR comment but the check never fails โ€” for engines/langs still being tuned.

Read next: Quality Workflows Related: gh-automations Overview ยท Build Checks ยท Plugin, License, and Repo Checks ยท Skill and Locale Checks ยท Workflow Reference