Skip to content
Latchkey

Gsutil CI workflow (GoogleCloudPlatform/gsutil)

The Gsutil CI workflow from GoogleCloudPlatform/gsutil, 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: GoogleCloudPlatform/gsutil.github/workflows/ci.ymlLicense Apache-2.0View source

What it does

This is the Gsutil CI workflow from the GoogleCloudPlatform/gsutil 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: Gsutil CI

on:
  push:
    branches: [ master ]
  pull_request:
    branches: [ master ]

jobs:
  build:

    runs-on: ubuntu-24.04
    strategy:
      matrix:
        python-version: [3.9.x, 3.10.x, 3.11.x, 3.12.x, 3.13.x, 3.14.x]

    steps:
    - uses: actions/checkout@v4
    - name: Set up Python ${{ matrix.python-version }}
      uses: actions/setup-python@v4
      with:
        python-version: ${{ matrix.python-version }}
      env:
        PIP_TRUSTED_HOST: "pypi.python.org pypi.org files.pythonhosted.org"
    - name: Install dependencies
      run: |
        set -x
        git submodule update --init --recursive
    - name: Test
      run: |
        set -x
        python gsutil version -l
        python gsutil test -u

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: Gsutil CI
 
on:
  push:
    branches: [ master ]
  pull_request:
    branches: [ master ]
 
concurrency:
  group: ${{ github.workflow }}-${{ github.ref }}
  cancel-in-progress: true
 
jobs:
  build:
    timeout-minutes: 30
 
    runs-on: latchkey-small
    strategy:
      matrix:
        python-version: [3.9.x, 3.10.x, 3.11.x, 3.12.x, 3.13.x, 3.14.x]
 
    steps:
    - uses: actions/checkout@v4
    - name: Set up Python ${{ matrix.python-version }}
      uses: actions/setup-python@v4
      with:
        cache: 'pip'
        python-version: ${{ matrix.python-version }}
      env:
        PIP_TRUSTED_HOST: "pypi.python.org pypi.org files.pythonhosted.org"
    - name: Install dependencies
      run: |
        set -x
        git submodule update --init --recursive
    - name: Test
      run: |
        set -x
        python gsutil version -l
        python gsutil test -u
 

What changed

This workflow runs 1 job (6 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