Skip to content

Commit 304fbb5

Browse files
authored
Add python 3.12 to CI (#1886)
* Create requirements-py3.12.yml * add 3.12 to GH Actions test workflows * whatsnew * nix solarfactors * fix yaml syntax * increase min scipy to 1.5; update comments
1 parent f430a74 commit 304fbb5

File tree

4 files changed

+31
-3
lines changed

4 files changed

+31
-3
lines changed

.github/workflows/pytest-remote-data.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ jobs:
5656
strategy:
5757
fail-fast: false # don't cancel other matrix jobs when one fails
5858
matrix:
59-
python-version: [3.7, 3.8, 3.9, "3.10", "3.11"]
59+
python-version: [3.7, 3.8, 3.9, "3.10", "3.11", "3.12"]
6060
suffix: [''] # the alternative to "-min"
6161
include:
6262
- python-version: 3.7

.github/workflows/pytest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
fail-fast: false # don't cancel other matrix jobs when one fails
1313
matrix:
1414
os: [ubuntu-latest, macos-latest, windows-latest]
15-
python-version: [3.7, 3.8, 3.9, "3.10", "3.11"]
15+
python-version: [3.7, 3.8, 3.9, "3.10", "3.11", "3.12"]
1616
environment-type: [conda, bare]
1717
suffix: [''] # placeholder as an alternative to "-min"
1818
include:

ci/requirements-py3.12.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: test_env
2+
channels:
3+
- defaults
4+
- conda-forge
5+
dependencies:
6+
- coveralls
7+
- cython
8+
- ephem
9+
- h5py
10+
# - numba # not available for 3.12 as of 2023-12-12
11+
- numpy >= 1.16.0
12+
- pandas >= 0.25.0
13+
- pip
14+
- pytest
15+
- pytest-cov
16+
- pytest-mock
17+
- requests-mock
18+
- pytest-timeout
19+
- pytest-rerunfailures
20+
- pytest-remotedata
21+
- python=3.12
22+
- pytz
23+
- requests
24+
- scipy >= 1.5.0
25+
- statsmodels
26+
# - pip:
27+
# - nrel-pysam>=2.0 # not available for 3.12 as of 2023-12-12
28+
# - solarfactors # required shapely<2 isn't available for 3.12

docs/sphinx/source/whatsnew/v0.10.3.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Bug fixes
2626
Testing
2727
~~~~~~~
2828
* Replace use of deprecated ``pkg_resources``. (:issue:`1881`, :pull:`1882`)
29-
29+
* Added Python 3.12 to test suite. (:pull:`1886`)
3030

3131
Documentation
3232
~~~~~~~~~~~~~

0 commit comments

Comments
 (0)