Skip to content

Commit da569aa

Browse files
crungehottmanclaude
andcommitted
Various CI fixes
- Add pbr to test-requirements.txt. bandit 1.7.5 imports pbr at runtime but does not declare it as a runtime dependency, so a clean resolve omits it and the py3-bandit tox env fails with "ModuleNotFoundError: No module named 'pbr'". - Drop the Python 3.9 CI job and remove py39 from the tox envlist. Python 3.9 is EOL and unavailable on the current ubuntu-latest runner (26.04), so the setup-python step failed before any tests ran. - Add a Python 3.12 CI job (and py312 to the tox envlist). exodus-gw, the only consumer, runs Python >=3.12, which CI was not exercising. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 1a8f394 commit da569aa

3 files changed

Lines changed: 13 additions & 10 deletions

File tree

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Tox tests
33
on: [push, pull_request]
44

55
jobs:
6-
py39:
6+
py310:
77
runs-on: ubuntu-latest
88
steps:
99
- uses: actions/checkout@v3
@@ -12,12 +12,12 @@ jobs:
1212
- name: Setup Python
1313
uses: actions/setup-python@v4
1414
with:
15-
python-version: '3.9'
15+
python-version: '3.10'
1616
- name: Install Tox
1717
run: pip install tox
1818
- name: Run Tox
19-
run: tox -e py39
20-
py310:
19+
run: tox -e py310
20+
py311:
2121
runs-on: ubuntu-latest
2222
steps:
2323
- uses: actions/checkout@v3
@@ -26,12 +26,12 @@ jobs:
2626
- name: Setup Python
2727
uses: actions/setup-python@v4
2828
with:
29-
python-version: '3.10'
29+
python-version: '3.11'
3030
- name: Install Tox
3131
run: pip install tox
3232
- name: Run Tox
33-
run: tox -e py310
34-
py311:
33+
run: tox -e py311
34+
py312:
3535
runs-on: ubuntu-latest
3636
steps:
3737
- uses: actions/checkout@v3
@@ -40,11 +40,11 @@ jobs:
4040
- name: Setup Python
4141
uses: actions/setup-python@v4
4242
with:
43-
python-version: '3.11'
43+
python-version: '3.12'
4444
- name: Install Tox
4545
run: pip install tox
4646
- name: Run Tox
47-
run: tox -e py311
47+
run: tox -e py312
4848
static:
4949
runs-on: ubuntu-latest
5050
steps:

‎test-requirements.txt‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,7 @@ pytest
22
requests-mock
33
mock
44
bandit==1.7.5;python_version > '3'
5+
# bandit 1.7.5 imports pbr at runtime but doesn't declare it as a dependency,
6+
# so a clean resolve omits it -> "ModuleNotFoundError: No module named 'pbr'".
7+
pbr;python_version > '3'
58
responses

‎tox.ini‎

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

44
[testenv]
55
deps=-rtest-requirements.txt

0 commit comments

Comments
 (0)