Check latest release workflow (ultimate-notion/ultimate-notion)
The Check latest release workflow from ultimate-notion/ultimate-notion, explained and optimized by Latchkey.
CI health: A - excellent
Point runs-on at Latchkey and get caching, self-healing for flaky steps, and up to 58% lower cost, applied automatically.
What it does
This is the Check latest release workflow from the ultimate-notion/ultimate-notion 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: Check latest release
on:
workflow_dispatch:
schedule:
- cron: "0 8 * * 1"
concurrency:
group: check-latest-release
cancel-in-progress: false
env:
PYTHONUNBUFFERED: "1"
FORCE_COLOR: "1"
NOTION_TOKEN: "${{ secrets.NOTION_AUTH_TOKEN }}"
PIP_COMPILE_DISABLE: true
PIPX_HOME: "${{ github.workspace }}/.pipx"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: '3.10'
- name: Setup environment requirements
uses: ./.github/actions/setup-venv-reqs
- name: Install Hatch Python version
run: hatch python install 3.10
- name: Run tests to check latest release
run: hatch run prod:test
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: Check latest release on: workflow_dispatch: schedule: - cron: "0 8 * * 1" concurrency: group: check-latest-release cancel-in-progress: false env: PYTHONUNBUFFERED: "1" FORCE_COLOR: "1" NOTION_TOKEN: "${{ secrets.NOTION_AUTH_TOKEN }}" PIP_COMPILE_DISABLE: true PIPX_HOME: "${{ github.workspace }}/.pipx" jobs: build: runs-on: latchkey-small steps: - name: Checkout uses: actions/checkout@v6 - name: Set up Python uses: actions/setup-python@v6 with: cache: 'pip' python-version: '3.10' - name: Setup environment requirements uses: ./.github/actions/setup-venv-reqs - name: Install Hatch Python version run: hatch python install 3.10 - name: Run tests to check latest release run: hatch run prod:test
What changed
- Run on Latchkey managed runners with one line (
runs-on), which apply the fixes below automatically and self-heal transient failures. This example useslatchkey-small; pick the runner size that fits the job. - Cache dependency installs on the setup step so they are served from cache.
This workflow runs 1 job per trigger. On Latchkey the same minutes cost up to 58% less than GitHub-hosted, with zero queue time.