Skip to content
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
2 changes: 1 addition & 1 deletion ci/requirements-py3.10.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ dependencies:
- statsmodels
- pip:
# - nrel-pysam>=2.0 # install error on windows
- pvfactors==1.4.1
- pvfactors==1.5.2
32 changes: 32 additions & 0 deletions ci/requirements-py3.11.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: test_env
channels:
- defaults
- conda-forge
dependencies:
- coveralls
# - cython
# - ephem
- h5py
# - netcdf4 # ???
# - nose
# - numba # ???
- 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
# - shapely # ??? pvfactors dependency
# - siphon # conda-forge
- statsmodels
- pip:
# - nrel-pysam>=2.0 # install error on windows
- pvfactors==1.5.2
2 changes: 1 addition & 1 deletion ci/requirements-py3.7.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ dependencies:
- statsmodels
- pip:
- nrel-pysam>=2.0
- pvfactors==1.4.1
- pvfactors==1.5.2
2 changes: 1 addition & 1 deletion ci/requirements-py3.8.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ dependencies:
- statsmodels
- pip:
- nrel-pysam>=2.0
- pvfactors==1.4.1
- pvfactors==1.5.2
2 changes: 1 addition & 1 deletion ci/requirements-py3.9.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ dependencies:
- statsmodels
- pip:
# - nrel-pysam>=2.0 # install error on windows
- pvfactors==1.4.1
- 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