From 5467692f6b1d3630b7c3427675addc0132b66f05 Mon Sep 17 00:00:00 2001 From: Josh <16180970+deadp@users.noreply.github.com> Date: Sat, 31 Oct 2026 09:08:06 +1300 Subject: [PATCH] ci: run Python 3.8/3.9 Ubuntu jobs in python:slim containers setup-python has no 3.8/3.9 builds for the ubuntu-latest (24.04) image, so those jobs failed at setup. Windows and macOS keep setup-python. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/ci.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e07ef6f..c28cbad 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -55,9 +55,13 @@ jobs: matrix: os: [ubuntu-latest, windows-latest, macos-latest] python: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"] + # setup-python has no 3.8/3.9 builds for the current ubuntu-latest image, + # so those two run in the official Debian-based Python image instead. + container: ${{ matrix.os == 'ubuntu-latest' && (matrix.python == '3.8' || matrix.python == '3.9') && format('python:{0}-slim', matrix.python) || '' }} steps: - uses: actions/checkout@v7 - uses: actions/setup-python@v7 + if: ${{ !(matrix.os == 'ubuntu-latest' && (matrix.python == '3.8' || matrix.python == '3.9')) }} with: python-version: ${{ matrix.python }} # Per version, not just once: this is what keeps the README's @@ -74,9 +78,12 @@ jobs: fail-fast: false matrix: python: ["3.8", "3.12", "3.13"] + # 3.8 in the official Python image: see the smoke job. + container: ${{ matrix.python == '3.8' && 'python:3.8-slim' || '' }} steps: - uses: actions/checkout@v7 - uses: actions/setup-python@v7 + if: ${{ matrix.python != '3.8' }} with: python-version: ${{ matrix.python }} - name: Run unit tests