Skip to content
Latchkey

Validate docs workflow (kevin1024/vcrpy)

The Validate docs workflow from kevin1024/vcrpy, explained and optimized by Latchkey.

D

CI health: D - needs work

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

Grade your own workflow free or run it on Latchkey →
Source: kevin1024/vcrpy.github/workflows/docs.ymlLicense MITView source

What it does

This is the Validate docs workflow from the kevin1024/vcrpy 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

workflow (.yml)
name: Validate docs

on:
  push:
    paths:
      - 'docs/**'

jobs:
  validate:
    runs-on: ubuntu-24.04

    steps:
      - uses: actions/checkout@v6
      - uses: actions/setup-python@v6
        with:
          python-version: "3.12"

      - name: Install build dependencies
        run: pip install -r docs/requirements.txt
      - name: Rendering HTML documentation
        run: sphinx-build -b html docs/ html
      - name: Inspect html rendered
        run: cat html/index.html

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: Validate docs
 
on:
  push:
    paths:
      - 'docs/**'
 
concurrency:
  group: ${{ github.workflow }}-${{ github.ref }}
  cancel-in-progress: true
 
jobs:
  validate:
    timeout-minutes: 30
    runs-on: latchkey-small
 
    steps:
      - uses: actions/checkout@v6
      - uses: actions/setup-python@v6
        with:
          cache: 'pip'
          python-version: "3.12"
 
      - name: Install build dependencies
        run: pip install -r docs/requirements.txt
      - name: Rendering HTML documentation
        run: sphinx-build -b html docs/ html
      - name: Inspect html rendered
        run: cat html/index.html
 

What changed

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:

This workflow runs 1 job per trigger. On Latchkey the same minutes cost up to 58% less than GitHub-hosted, with zero queue time.

Actions used in this workflow