Skip to content

Commit 28871c6

Browse files
Merge pull request #480 from jktjkt/python-3.12
CI: Python 3.12 and extended platform coverage
2 parents 5a5bed5 + 05500c7 commit 28871c6

File tree

4 files changed

+44
-10
lines changed

4 files changed

+44
-10
lines changed

.github/workflows/main.yml

+29-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ jobs:
2929
- py38
3030
- py39
3131
- py310
32-
- py311-cover
32+
- py311
33+
- py312-cover
3334
include:
3435
- tox_env: docs
3536
dnf_install: graphviz
@@ -46,7 +47,7 @@ jobs:
4647
- uses: actions/setup-python@v4
4748
name: Install Python
4849
with:
49-
python-version: '3.11'
50+
python-version: '3.12'
5051
- uses: casperdcl/deploy-pypi@bb869aafd89f657ceaafe9561d3b5584766c0f95
5152
with:
5253
password: ${{ secrets.PYPI_API_TOKEN }}
@@ -116,5 +117,31 @@ jobs:
116117
python_version: "3.10"
117118
- os: windows-2022
118119
python_version: "3.11"
120+
- os: windows-2022
121+
python_version: "3.12"
119122
- os: macos-12
120123
python_version: "3.11"
124+
- os: macos-13
125+
python_version: "3.12"
126+
127+
paywalled-platforms:
128+
name: Tests on paywalled platforms
129+
if: github.repository_owner == 'Telecominfraproject'
130+
runs-on: ${{ matrix.os }}
131+
steps:
132+
- uses: actions/checkout@v3
133+
with:
134+
fetch-depth: 0
135+
- uses: actions/setup-python@v4
136+
with:
137+
python-version: ${{ matrix.python_version }}
138+
- run: |
139+
pip install -r tests/requirements.txt
140+
pip install --editable .
141+
pytest -vv
142+
strategy:
143+
fail-fast: false
144+
matrix:
145+
include:
146+
- os: macos-13-xlarge # Apple M1 CPU
147+
python_version: "3.12"

requirements.txt

+10-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
1-
matplotlib>=3.5.1,<4
2-
networkx>=2.6,<3
3-
numpy>=1.22.0,<2
4-
pbr>=5.7.0,<6
5-
scipy>=1.7.3,<2
1+
# matplotlib 3.8 removed support for Python 3.8
2+
matplotlib>=3.7.3,<4
3+
# networkx 3.2 removed support for Python 3.8
4+
networkx>=3.1,<4
5+
# numpy 1.25 removed support for Python 3.8
6+
numpy>=1.24.4,<2
7+
pbr>=6.0.0,<7
8+
# scipy 1.11 removed support for Python 3.8
9+
scipy>=1.10.1,<2
10+
# xlrd 2.x removed support for .xlsx, it's only .xls now
611
xlrd>=1.2.0,<2

setup.cfg

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ classifier =
2323
Programming Language :: Python :: 3.9
2424
Programming Language :: Python :: 3.10
2525
Programming Language :: Python :: 3.11
26+
Programming Language :: Python :: 3.12
2627
Programming Language :: Python :: Implementation :: CPython
2728
Topic :: Scientific/Engineering
2829
Topic :: Scientific/Engineering :: Physics

tests/requirements.txt

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
build>=0.10.0,<1
2-
pytest>=6.2.5,<7
3-
pandas>=1.3.5,<2
1+
build>=1.0.3,<2
2+
pytest>=7.4.3,<8
3+
# pandas 2.1 removed support for Python 3.8
4+
pandas>=2.0.3,<3
45

56
# flake v6 killed the --diff option
67
flake8>=5.0.4,<6

0 commit comments

Comments
 (0)