From 77177b5396c1930d7fffe5403a66f0829c19222b Mon Sep 17 00:00:00 2001 From: ahmed Date: Fri, 30 Oct 2026 15:15:02 -0400 Subject: [PATCH 1/2] Fix CI: test Python 3.9-3.14 with current GitHub Actions setup-python@v2 on ubuntu-latest can no longer install Python 3.8/3.9, so every run failed before reaching the tests and fail-fast cancelled the remaining versions. - Test 3.9-3.14 (drop 3.8, unused; add 3.13/3.14, used in production). - actions/checkout@v4 and actions/setup-python@v5. - fail-fast: false so one version's failure doesn't hide the others. - Test-only pins psycopg2-binary 2.9.11 and PyYAML 6.0.3, the first releases with wheels for every version in the matrix. Runtime requirements in setup.py are unchanged. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/run-tests.yaml | 9 ++++++--- requirements-test.txt | 4 ++-- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/run-tests.yaml b/.github/workflows/run-tests.yaml index 5b59f71..dbfa1f5 100644 --- a/.github/workflows/run-tests.yaml +++ b/.github/workflows/run-tests.yaml @@ -9,19 +9,22 @@ on: jobs: test: strategy: + # keep running the other versions when one fails, so failures aren't hidden + fail-fast: false matrix: python-version: - - "3.8" - "3.9" - "3.10" - "3.11" - "3.12" + - "3.13" + - "3.14" runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - name: Install dependencies diff --git a/requirements-test.txt b/requirements-test.txt index 0da5544..84e8f0e 100644 --- a/requirements-test.txt +++ b/requirements-test.txt @@ -1,6 +1,6 @@ pytest==7.4.3 pytest-cov==4.1.0 newrelic==9.3.0 -PyYAML==6.0.1 +PyYAML==6.0.3 python-dateutil==2.6.0 -psycopg2-binary==2.9.9 +psycopg2-binary==2.9.11 From 3333f4834e332fd40e0178b9932742adee478bcd Mon Sep 17 00:00:00 2001 From: ahmed Date: Fri, 30 Oct 2026 15:15:53 -0400 Subject: [PATCH 2/2] Run the Python 3.9 tests on ubuntu-24.04 ubuntu-latest is now Ubuntu 26.04, which has no Python 3.9 build. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/run-tests.yaml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/run-tests.yaml b/.github/workflows/run-tests.yaml index dbfa1f5..f0efd38 100644 --- a/.github/workflows/run-tests.yaml +++ b/.github/workflows/run-tests.yaml @@ -12,14 +12,18 @@ jobs: # keep running the other versions when one fails, so failures aren't hidden fail-fast: false matrix: + os: [ ubuntu-latest ] python-version: - - "3.9" - "3.10" - "3.11" - "3.12" - "3.13" - "3.14" - runs-on: ubuntu-latest + include: + # no Python 3.9 build exists for the current ubuntu-latest (26.04) + - os: ubuntu-24.04 + python-version: "3.9" + runs-on: ${{ matrix.os }} steps: - name: Checkout uses: actions/checkout@v4