Skip to content

add python 3.11 to ci #1582

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 12 commits into from
Jan 24, 2023
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"]
python-version: [3.7, 3.8, 3.9, "3.10", "3.11"]
suffix: [''] # the alternative to "-min"
include:
- python-version: 3.7
Expand Down
7 changes: 4 additions & 3 deletions .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"]
python-version: [3.7, 3.8, 3.9, "3.10", "3.11"]
environment-type: [conda, bare]
suffix: [''] # placeholder as an alternative to "-min"
include:
Expand Down Expand Up @@ -40,12 +40,13 @@ jobs:

- name: Install Conda environment with Micromamba
if: matrix.environment-type == 'conda'
uses: mamba-org/provision-with-micromamba@v12
uses: mamba-org/provision-with-micromamba@v14
with:
environment-file: ${{ env.REQUIREMENTS }}
cache-downloads: true
extra-specs: |
python=${{ matrix.python-version }}
channel-priority: flexible
env:
# build requirement filename. First replacement is for the python
# version, second is to add "-min" if needed
Expand All @@ -58,7 +59,7 @@ jobs:

- name: Install bare Python ${{ matrix.python-version }}${{ matrix.suffix }}
if: matrix.environment-type == 'bare'
uses: actions/setup-python@v1
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

Expand Down
10 changes: 4 additions & 6 deletions ci/requirements-py3.10.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ dependencies:
- cython
- ephem
- h5py
# - netcdf4 # pulls in a different version of numpy with ImportError
# - numba # python 3.9 compat in early 2021
- netcdf4
- numba
- numpy >= 1.16.0
- pandas >= 0.25.0
- pip
Expand All @@ -23,9 +23,7 @@ dependencies:
- pytz
- requests
- scipy >= 1.4.0
- shapely # pvfactors dependency
# - siphon # conda-forge
- statsmodels
- pip:
# - nrel-pysam>=2.0 # install error on windows
- pvfactors==1.4.1
- nrel-pysam>=2.0
- pvfactors==1.5.2
29 changes: 29 additions & 0 deletions ci/requirements-py3.11.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: test_env
channels:
- defaults
- conda-forge
dependencies:
- coveralls
- cython
- ephem
- h5py
- netcdf4
# - numba # https://github.com/numba/numba/issues/8304
- numpy >= 1.16.0
- pandas >= 0.25.0
- pip
- pytest
- pytest-cov
- pytest-mock
- requests-mock
- pytest-timeout
- pytest-rerunfailures
- pytest-remotedata
- python=3.11
- pytz
- requests
- scipy >= 1.2.0
- statsmodels
- pip:
# - nrel-pysam>=2.0
- pvfactors==1.5.2
3 changes: 1 addition & 2 deletions ci/requirements-py3.7.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,8 @@ dependencies:
- pytz
- requests
- scipy >= 1.4.0
- shapely # pvfactors dependency
- siphon # conda-forge
- statsmodels
- pip:
- nrel-pysam>=2.0
- pvfactors==1.4.1
- pvfactors==1.5.2
3 changes: 1 addition & 2 deletions ci/requirements-py3.8.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,8 @@ dependencies:
- pytz
- requests
- scipy >= 1.4.0
- shapely # pvfactors dependency
- siphon # conda-forge
- statsmodels
- pip:
- nrel-pysam>=2.0
- pvfactors==1.4.1
- pvfactors==1.5.2
10 changes: 4 additions & 6 deletions ci/requirements-py3.9.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ dependencies:
- cython
- ephem
- h5py
# - netcdf4 # pulls in a different version of numpy with ImportError
# - numba # python 3.9 compat in early 2021
- netcdf4
- numba
- numpy >= 1.16.0
- pandas >= 0.25.0
- pip
Expand All @@ -23,9 +23,7 @@ dependencies:
- pytz
- requests
- scipy >= 1.4.0
- shapely # pvfactors dependency
# - siphon # conda-forge
- statsmodels
- pip:
# - nrel-pysam>=2.0 # install error on windows
- pvfactors==1.4.1
- nrel-pysam>=2.0
- pvfactors==1.5.2
1 change: 1 addition & 0 deletions docs/sphinx/source/whatsnew/v0.9.5.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ Bug fixes

Testing
~~~~~~~
* Added Python 3.11 to test suite. (:pull:`1582`)


Documentation
Expand Down