Skip to content
Latchkey

Checks workflow (mocobeta/janome)

The Checks workflow from mocobeta/janome, explained and optimized by Latchkey.

F

CI health: F - at risk

Point runs-on at Latchkey and get caching, run de-duplication, job timeouts, SHA-pinned actions, self-healing for flaky steps, and up to 58% lower cost, applied automatically.

Grade your own workflow free or run it on Latchkey →
Source: mocobeta/janome.github/workflows/checks.ymlLicense Apache-2.0View source

What it does

This is the Checks workflow from the mocobeta/janome repository, a real project running GitHub Actions. It is shown here with attribution under its Apache-2.0 license.

Below, Latchkey shows a faster, safer version produced by its optimization engine.

The workflow

workflow (.yml)
name: Checks

on:
  push:
    branches:
    - 'master'
  pull_request:


jobs:
  test:

    runs-on: ${{ matrix.os }}
    strategy:
      matrix:
        os: [ubuntu-latest, macos-latest, windows-latest]
        python-version: ['3.10', '3.11', '3.12', '3.13', '3.14']

    steps:
    - uses: actions/checkout@v4
    - name: Set up Python ${{ matrix.python-version }}
      uses: actions/setup-python@v5
      with:
        python-version: ${{ matrix.python-version }}
    - uses: astral-sh/setup-uv@v5
    - name: Test
      run: |
        uv sync --group dev
        uv run python -m unittest discover tests/

  check:

    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v4
    - uses: actions/setup-python@v5
    - uses: astral-sh/setup-uv@v5
    - name: Unit tests for coverage
      run: |
        uv sync --group dev
        uv run coverage run -m unittest discover tests
    - name: Coveralls
      uses: AndreMiras/coveralls-python-action@develop
      with:
        parallel: true
        flag-name: Unit Test
    - name: Lint with flake8
      run: uv run python -m flake8 ./src/janome
    - name: Lint with mypy
      run: uv run python -m mypy ./src/janome

  coveralls_finish:
    needs: check
    runs-on: ubuntu-latest
    steps:
    - name: Coveralls Finished
      uses: AndreMiras/coveralls-python-action@develop
      with:
        parallel-finished: true

The same workflow, on Latchkey

Estimated ~20% faster on cache hits, plus fewer wasted runs and a safer supply chain. Added and changed lines are highlighted.

name: Checks
 
on:
  push:
    branches:
    - 'master'
  pull_request:
 
 
concurrency:
  group: ${{ github.workflow }}-${{ github.ref }}
  cancel-in-progress: true
 
jobs:
  test:
    timeout-minutes: 30
 
    runs-on: ${{ matrix.os }}
    strategy:
      matrix:
        os: [ubuntu-latest, macos-latest, windows-latest]
        python-version: ['3.10', '3.11', '3.12', '3.13', '3.14']
 
    steps:
    - uses: actions/checkout@v4
    - name: Set up Python ${{ matrix.python-version }}
      uses: actions/setup-python@v5
      with:
        cache: 'pip'
        python-version: ${{ matrix.python-version }}
    - uses: astral-sh/setup-uv@v5
    - name: Test
      run: |
        uv sync --group dev
        uv run python -m unittest discover tests/
 
  check:
    timeout-minutes: 30
 
    runs-on: latchkey-small
    steps:
    - uses: actions/checkout@v4
    - uses: actions/setup-python@v5
      with:
        cache: 'pip'
    - uses: astral-sh/setup-uv@v5
    - name: Unit tests for coverage
      run: |
        uv sync --group dev
        uv run coverage run -m unittest discover tests
    - name: Coveralls
      uses: AndreMiras/coveralls-python-action@develop
      with:
        parallel: true
        flag-name: Unit Test
    - name: Lint with flake8
      run: uv run python -m flake8 ./src/janome
    - name: Lint with mypy
      run: uv run python -m mypy ./src/janome
 
  coveralls_finish:
    timeout-minutes: 30
    needs: check
    runs-on: latchkey-small
    steps:
    - name: Coveralls Finished
      uses: AndreMiras/coveralls-python-action@develop
      with:
        parallel-finished: true
 

What changed

2 third-party actions are referenced by a movable tag. Pin them to the commit SHA (Latchkey resolves and applies this automatically) so a repointed tag cannot change what runs.

This workflow runs 3 jobs (17 with the matrix expanded) per trigger. On Latchkey the same minutes cost up to 58% less than GitHub-hosted, with zero queue time.

Actions used in this workflow