test workflow (thewh1teagle/kokoro-onnx)
The test workflow from thewh1teagle/kokoro-onnx, explained and optimized by Latchkey.
CI health: B - good
Run this on Latchkey for self-healing, caching, and up to 58% lower cost.
Grade your own workflow free or run it on Latchkey →What it does
This is the test workflow from the thewh1teagle/kokoro-onnx repository, a real project running GitHub Actions. It is shown here with attribution under its MIT license.
Below, Latchkey shows a faster, safer version produced by its optimization engine.
The workflow
name: test
on:
workflow_dispatch:
jobs:
test:
permissions:
contents: write
strategy:
fail-fast: false
matrix:
include:
- platform: "macos-14" # for Arm based macs (M1 and above).
- platform: "macos-13" # for Intel based macs.
- platform: "ubuntu-22.04" # Ubuntu 22.04 x86_64
- platform: "ubuntu-22.04-arm" # Linux ARM
- platform: "windows-2022" # Windows x86_64
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v4
- name: Install the latest version of uv
uses: astral-sh/setup-uv@v5
# https://github.com/crate-ci/typos/issues/1191
- name: Install wget for Windows
if: matrix.platform == 'windows-2022'
run: choco install wget --no-progress
- name: test
run: |
wget --progress=bar:force:noscroll https://github.com/thewh1teagle/kokoro-onnx/releases/download/model-files-v1.0/kokoro-v1.0.int8.onnx -O kokoro-v1.0.onnx
wget --progress=bar:force:noscroll https://github.com/thewh1teagle/kokoro-onnx/releases/download/model-files-v1.0/voices-v1.0.bin -O voices-v1.0.bin
uv run examples/save.py
shell: bash
The same workflow, on Latchkey
Removes redundant runs and caps runaway jobs. Added and changed lines are highlighted.
name: test on: workflow_dispatch: jobs: test: timeout-minutes: 30 permissions: contents: write strategy: fail-fast: false matrix: include: - platform: "macos-14" # for Arm based macs (M1 and above). - platform: "macos-13" # for Intel based macs. - platform: "ubuntu-22.04" # Ubuntu 22.04 x86_64 - platform: "ubuntu-22.04-arm" # Linux ARM - platform: "windows-2022" # Windows x86_64 runs-on: ${{ matrix.platform }} steps: - uses: actions/checkout@v4 - name: Install the latest version of uv uses: astral-sh/setup-uv@v5 # https://github.com/crate-ci/typos/issues/1191 - name: Install wget for Windows if: matrix.platform == 'windows-2022' run: choco install wget --no-progress - name: test run: | wget --progress=bar:force:noscroll https://github.com/thewh1teagle/kokoro-onnx/releases/download/model-files-v1.0/kokoro-v1.0.int8.onnx -O kokoro-v1.0.onnx wget --progress=bar:force:noscroll https://github.com/thewh1teagle/kokoro-onnx/releases/download/model-files-v1.0/voices-v1.0.bin -O voices-v1.0.bin uv run examples/save.py shell: bash
What changed
- Add a job timeout so a hung step cannot burn hours of runner time.
1 third-party action is referenced by a movable tag. Pin it to the commit SHA (Latchkey resolves and applies this automatically) so a repointed tag cannot change what runs.
What Latchkey heals here
This workflow has steps that commonly fail on transient issues (network, registries, flaky browsers). On Latchkey managed runners they are detected, retried, and self-healed instead of failing your build:
- Network fetches
This workflow runs 1 job per trigger. On Latchkey the same minutes cost up to 58% less than GitHub-hosted, with zero queue time.