Skip to content

Commit

Permalink
Add python 3.12 to CI (#1886)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
kandersolar authored Dec 12, 2023
1 parent f430a74 commit 304fbb5
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pytest-remote-data.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:
strategy:
fail-fast: false # don't cancel other matrix jobs when one fails
matrix:
python-version: [3.7, 3.8, 3.9, "3.10", "3.11"]
python-version: [3.7, 3.8, 3.9, "3.10", "3.11", "3.12"]
suffix: [''] # the alternative to "-min"
include:
- python-version: 3.7
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
fail-fast: false # don't cancel other matrix jobs when one fails
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: [3.7, 3.8, 3.9, "3.10", "3.11"]
python-version: [3.7, 3.8, 3.9, "3.10", "3.11", "3.12"]
environment-type: [conda, bare]
suffix: [''] # placeholder as an alternative to "-min"
include:
Expand Down
28 changes: 28 additions & 0 deletions ci/requirements-py3.12.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: test_env
channels:
- defaults
- conda-forge
dependencies:
- coveralls
- cython
- ephem
- h5py
# - numba # not available for 3.12 as of 2023-12-12
- numpy >= 1.16.0
- pandas >= 0.25.0
- pip
- pytest
- pytest-cov
- pytest-mock
- requests-mock
- pytest-timeout
- pytest-rerunfailures
- pytest-remotedata
- python=3.12
- pytz
- requests
- scipy >= 1.5.0
- statsmodels
# - pip:
# - nrel-pysam>=2.0 # not available for 3.12 as of 2023-12-12
# - solarfactors # required shapely<2 isn't available for 3.12
2 changes: 1 addition & 1 deletion docs/sphinx/source/whatsnew/v0.10.3.rst
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Bug fixes
Testing
~~~~~~~
* Replace use of deprecated ``pkg_resources``. (:issue:`1881`, :pull:`1882`)

* Added Python 3.12 to test suite. (:pull:`1886`)

Documentation
~~~~~~~~~~~~~
Expand Down

0 comments on commit 304fbb5

Please # to comment.