diff --git a/.github/workflows/pytest-remote-data.yml b/.github/workflows/pytest-remote-data.yml index 7e32486918..0603f632da 100644 --- a/.github/workflows/pytest-remote-data.yml +++ b/.github/workflows/pytest-remote-data.yml @@ -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 diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index 5185734e72..0b618d9f92 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -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: diff --git a/ci/requirements-py3.12.yml b/ci/requirements-py3.12.yml new file mode 100644 index 0000000000..69632b3ac1 --- /dev/null +++ b/ci/requirements-py3.12.yml @@ -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 diff --git a/docs/sphinx/source/whatsnew/v0.10.3.rst b/docs/sphinx/source/whatsnew/v0.10.3.rst index 63f7b90b84..940b3f1647 100644 --- a/docs/sphinx/source/whatsnew/v0.10.3.rst +++ b/docs/sphinx/source/whatsnew/v0.10.3.rst @@ -24,7 +24,7 @@ Bug fixes Testing ~~~~~~~ * Replace use of deprecated ``pkg_resources``. (:issue:`1881`, :pull:`1882`) - +* Added Python 3.12 to test suite. (:pull:`1886`) Documentation ~~~~~~~~~~~~~