Skip to content

Commit

Permalink
Adopt support for python 3.8-3.10 (#316)
Browse files Browse the repository at this point in the history
* Unpin micromamba

* Update actions to the node16 runtime

* Adopt support for python 3.8-3.10 window (NEP 29)

* Migrate codecov-action to v3
  • Loading branch information
dnerini authored Jan 23, 2023
1 parent 7a39a6a commit c9bd687
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 11 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/check_black.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up Python 3.8
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: 3.8
- name: Install dependencies
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install dependencies
Expand Down
11 changes: 5 additions & 6 deletions .github/workflows/test_pysteps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,23 +20,22 @@ jobs:
fail-fast: false
matrix:
os: [ "ubuntu-latest", "macos-latest", "windows-latest" ]
python-version: [ "3.7", "3.8", "3.9" ]
python-version: ["3.8", "3.10"]
max-parallel: 6

defaults:
run:
shell: bash -l {0}

steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

- name: Install mamba and create environment
uses: mamba-org/provision-with-micromamba@main
with:
micromamba-version: 0.24.0
environment-file: ci/ci_test_env.yml
environment-name: test_environment
extra-specs: python=${{ matrix.python-version }}
Expand Down Expand Up @@ -87,12 +86,12 @@ jobs:

- name: Upload coverage to Codecov (Linux only)
if: matrix.os == 'ubuntu-latest'
uses: codecov/codecov-action@v1
uses: codecov/codecov-action@v3
env:
OS: ${{ matrix.os }}
PYTHON: ${{ matrix.python-version }}
with:
file: ${{github.workspace}}/pysteps_data/coverage.xml
files: ${{github.workspace}}/pysteps_data/coverage.xml
flags: unit_tests
env_vars: OS,PYTHON
fail_ci_if_error: true
Expand Down
2 changes: 1 addition & 1 deletion doc/source/user_guide/install_pysteps.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Dependencies

The pysteps package needs the following dependencies

* `python >=3.7, <3.10 <http://www.python.org/>`_ (lower or higher versions may work but are not tested).
* `python >=3.8, <3.11 <http://www.python.org/>`_ (lower or higher versions may work but are not tested).
* `jsonschema <https://pypi.org/project/jsonschema/>`_
* `matplotlib <http://matplotlib.org/>`_
* `netCDF4 <https://pypi.org/project/netCDF4/>`_
Expand Down

0 comments on commit c9bd687

Please sign in to comment.