Skip to content
Latchkey

CI workflow (vllm-project/production-stack)

The CI workflow from vllm-project/production-stack, explained and optimized by Latchkey.

A

CI health: A - excellent

Point runs-on at Latchkey and get 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: vllm-project/production-stack.github/workflows/ci.ymlLicense Apache-2.0View source

What it does

This is the CI workflow from the vllm-project/production-stack 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: CI

on:
  push:
    branches:
      - main
    paths:
      - '.github/workflows/**'
      - '**.py'
      - 'pyproject.toml'
  pull_request:
    paths:
        - '.github/workflows/**'
        - '**.py'
        - 'pyproject.toml'
  merge_group:

concurrency:
  group: ${{ github.workflow }}-${{ github.ref }}
  cancel-in-progress: true

jobs:
  python-tests:
    name: Python Tests
    runs-on: ubuntu-latest
    steps:
      - name: Checkout Code
        uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

      - name: Install uv
        uses: astral-sh/setup-uv@d4b2f3b6ecc6e67c4457f6d3e41ec42d3d0fcb86 # v5.4.2
        with:
          enable-cache: true
          ignore-nothing-to-cache: true

      - name: Install Dependencies
        run: uv sync --all-extras --all-groups

      - name: Run Tests
        run: uv run pytest

The same workflow, on Latchkey

Removes redundant runs and caps runaway jobs. Added and changed lines are highlighted.

name: CI
 
on:
  push:
    branches:
      - main
    paths:
      - '.github/workflows/**'
      - '**.py'
      - 'pyproject.toml'
  pull_request:
    paths:
        - '.github/workflows/**'
        - '**.py'
        - 'pyproject.toml'
  merge_group:
 
concurrency:
  group: ${{ github.workflow }}-${{ github.ref }}
  cancel-in-progress: true
 
jobs:
  python-tests:
    timeout-minutes: 30
    name: Python Tests
    runs-on: latchkey-small
    steps:
      - name: Checkout Code
        uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
 
      - name: Install uv
        uses: astral-sh/setup-uv@d4b2f3b6ecc6e67c4457f6d3e41ec42d3d0fcb86 # v5.4.2
        with:
          enable-cache: true
          ignore-nothing-to-cache: true
 
      - name: Install Dependencies
        run: uv sync --all-extras --all-groups
 
      - name: Run Tests
        run: uv run pytest
 

What changed

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