diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4d997dd..1a3c959 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,7 +12,8 @@ on: jobs: ci: name: Python ${{ matrix.python-version }} - runs-on: ubuntu-latest + # Pinned: ubuntu-latest (26.04) has no Python 3.9 builds for setup-python. + runs-on: ubuntu-24.04 strategy: fail-fast: false matrix: @@ -29,7 +30,7 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install -e ".[test]" coveralls + pip install -e ".[test]" - name: Run ruff run: ruff check . - name: Run tests (modern default + router) @@ -37,9 +38,12 @@ jobs: - name: Run frozen v3 tests against the legacy engine run: python -m tests.legacy.run_against_legacy - name: Coveralls - # Coverage upload is informational; a Coveralls outage must not fail CI. + # Coverage upload is informational; a Coveralls outage, or its deps + # (pydantic-core) not building on an interpreter such as PyPy, must not fail CI. continue-on-error: true - run: coveralls --service=github + run: | + pip install coveralls + coveralls --service=github env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} COVERALLS_FLAG_NAME: python-${{ matrix.python-version }}