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