Skip to content

Commit d7f58ff

Browse files
crungehottmanclaude
andcommitted
ci: bump GitHub actions to v7 and move CI to Python 3.10
CI jobs were failing at the "Setup Python" step with "Version 3.9 with arch x64 not found": the ubuntu-latest runner image rolled (~2026-10-27) and dropped Python 3.9 from its tool cache, and actions/setup-python@v2 is too old to download it from the version manifest. Every tox job (static, coverage, docs, bandit, bandit-exitzero) aborted during setup before running. - Bump actions/checkout and actions/setup-python to v7 across all workflows, including release.yml (which would otherwise break the next PyPI publish). - Move the test/static/docs/bandit jobs and the tox envlist off EOL Python 3.9 to 3.10; release builds on 3.13. - Regenerate requirements.txt and test-requirements.txt under Python 3.10 (tox -e pip-compile). The 3.9-pinned lockfile did not resolve under 3.10: virtualenv requires filelock>=3.24.2 for python_version >= "3.10", conflicting with the previously pinned filelock==3.19.1. - Move the "pragma: no cover" on the entry_points import shim to the <3.10 branch so coverage stays at 100% when measured on Python 3.10. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent e4bbe71 commit d7f58ff

8 files changed

Lines changed: 1607 additions & 1582 deletions

File tree

‎.github/workflows/docs.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ jobs:
1010
docs:
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v2
13+
- uses: actions/checkout@v7
1414
- name: Setup Python
15-
uses: actions/setup-python@v2
15+
uses: actions/setup-python@v7
1616
with:
17-
python-version: 3.9
17+
python-version: "3.10"
1818
- name: Install OS packages
1919
run: |
2020
sudo apt-get -y update

‎.github/workflows/pip-compile.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: Setup Python
13-
uses: actions/setup-python@v2
13+
uses: actions/setup-python@v7
1414
with:
15-
python-version: "3.9"
15+
python-version: "3.10"
1616

1717
- name: Install system dependencies
1818
run: |

‎.github/workflows/release.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ jobs:
99
deploy:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v2
12+
- uses: actions/checkout@v7
1313
- name: Set up Python
14-
uses: actions/setup-python@v2
14+
uses: actions/setup-python@v7
1515
with:
16-
python-version: '3.9'
16+
python-version: '3.13'
1717
- name: Install dependencies
1818
run: |
1919
python -m pip install --upgrade pip

‎.github/workflows/tox-test.yml‎

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,16 @@ jobs:
66
static:
77
runs-on: ubuntu-latest
88
steps:
9-
- uses: actions/checkout@v2
9+
- uses: actions/checkout@v7
1010
- name: Install OS packages
1111
run: |
1212
sudo apt-get -y update
1313
sudo apt-get install -y rpm
1414
sudo apt-get install -y libkrb5-dev
1515
- name: Setup Python
16-
uses: actions/setup-python@v2
16+
uses: actions/setup-python@v7
1717
with:
18-
python-version: 3.9
18+
python-version: "3.10"
1919
- name: Install Tox
2020
run: pip install tox
2121
- name: Run Tox
@@ -25,16 +25,16 @@ jobs:
2525
permissions:
2626
id-token: write
2727
steps:
28-
- uses: actions/checkout@v2
28+
- uses: actions/checkout@v7
2929
- name: Install OS packages
3030
run: |
3131
sudo apt-get -y update
3232
sudo apt-get install -y rpm
3333
sudo apt-get install -y libkrb5-dev
3434
- name: Setup Python
35-
uses: actions/setup-python@v2
35+
uses: actions/setup-python@v7
3636
with:
37-
python-version: 3.9
37+
python-version: "3.10"
3838
- name: Install Tox
3939
run: pip install tox
4040
- name: Run Tox
@@ -50,50 +50,50 @@ jobs:
5050
docs:
5151
runs-on: ubuntu-latest
5252
steps:
53-
- uses: actions/checkout@v2
53+
- uses: actions/checkout@v7
5454
- name: Install OS packages
5555
run: |
5656
sudo apt-get -y update
5757
sudo apt-get install -y rpm
5858
sudo apt-get install -y libkrb5-dev
5959
- name: Setup Python
60-
uses: actions/setup-python@v2
60+
uses: actions/setup-python@v7
6161
with:
62-
python-version: 3.9
62+
python-version: "3.10"
6363
- name: Install Tox
6464
run: pip install tox
6565
- name: Run Tox
6666
run: tox -e docs
6767
bandit-exitzero:
6868
runs-on: ubuntu-latest
6969
steps:
70-
- uses: actions/checkout@v2
70+
- uses: actions/checkout@v7
7171
- name: Install OS packages
7272
run: |
7373
sudo apt-get -y update
7474
sudo apt-get install -y rpm
7575
sudo apt-get install -y libkrb5-dev
7676
- name: Setup Python
77-
uses: actions/setup-python@v2
77+
uses: actions/setup-python@v7
7878
with:
79-
python-version: 3.9
79+
python-version: "3.10"
8080
- name: Install Tox
8181
run: pip install tox
8282
- name: Run Tox
8383
run: tox -e bandit-exitzero
8484
bandit:
8585
runs-on: ubuntu-latest
8686
steps:
87-
- uses: actions/checkout@v2
87+
- uses: actions/checkout@v7
8888
- name: Install OS packages
8989
run: |
9090
sudo apt-get -y update
9191
sudo apt-get install -y rpm
9292
sudo apt-get install -y libkrb5-dev
9393
- name: Setup Python
94-
uses: actions/setup-python@v2
94+
uses: actions/setup-python@v7
9595
with:
96-
python-version: 3.9
96+
python-version: "3.10"
9797
- name: Install Tox
9898
run: pip install tox
9999
- name: Run Tox

‎requirements.txt‎

Lines changed: 549 additions & 603 deletions
Large diffs are not rendered by default.

‎src/pushsource/_impl/source.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
from threading import Lock
77
from urllib import parse
88

9-
if sys.version_info >= (3, 10): # pragma: no cover
9+
if sys.version_info >= (3, 10):
1010
from importlib.metadata import entry_points
11-
else:
11+
else: # pragma: no cover
1212
# for older python use non-standard compatible module
1313
from importlib_metadata import entry_points
1414

‎test-requirements.txt‎

Lines changed: 1031 additions & 952 deletions
Large diffs are not rendered by default.

‎tox.ini‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist = py39,static,docs
2+
envlist = py310,static,docs
33

44
[testenv]
55
deps=
@@ -45,7 +45,7 @@ testpaths = tests
4545
# Recompile all requirements .txt files using pip-compile.
4646
# Don't edit me - I'm deployed from a template.
4747
deps = pip-tools
48-
basepython = python3.9
48+
basepython = python3.10
4949
skip_install = true
5050
skipsdist = true
5151
commands =

0 commit comments

Comments
 (0)