Skip to content

Commit

Permalink
test against Python 3.12 and bump python versions used in CI (#231)
Browse files Browse the repository at this point in the history
* test against Python 3.12 and bump python versions used in CI

* Update CI configuration to disable fail-fast option

* update concurrency configuration
  • Loading branch information
andersy005 authored Aug 13, 2024
1 parent 72d9960 commit 8e226e8
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 7 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,18 @@ on:
schedule:
- cron: "0 0 * * *"

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
test:
name: ${{ matrix.python-version }}-build
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11"]
python-version: ["3.9", "3.10", "3.11", "3.12"]
fail-fast: false
steps:
- uses: actions/checkout@v4
- name: Setup Python
Expand All @@ -40,7 +45,7 @@ jobs:
pytest --verbose --cov=. --cov-report=xml
- name: Upload coverage to Codecov
uses: codecov/[email protected]
if: ${{ matrix.python-version }} == 3.9
if: ${{ matrix.python-version }} == 3.10
with:
file: ./coverage.xml
fail_ci_if_error: false
Expand All @@ -50,7 +55,8 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11"]
python-version: ["3.9", "3.10", "3.11", "3.12"]
fail-fast: false
steps:
- uses: actions/checkout@v4
- name: Setup Python
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pypi-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ jobs:
- uses: actions/[email protected]
name: Install Python
with:
python-version: 3.10
python-version: 3.11
- uses: actions/download-artifact@v4
with:
name: releases
Expand Down
2 changes: 1 addition & 1 deletion ci/requirements/asv.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ channels:
- nodefaults
dependencies:
# Required dependencies
- python=3.9
- python=3.10
- dask
- numpy
- xarray
Expand Down
2 changes: 1 addition & 1 deletion ci/requirements/doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ channels:
- conda-forge
- nodefaults
dependencies:
- python=3.9
- python=3.10
- dask
- pydata-sphinx-theme
- ipython
Expand Down
2 changes: 1 addition & 1 deletion ci/requirements/environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ channels:
- nodefaults
dependencies:
# Required dependencies
- python=3.9
- python=3.10
- dask
- numpy
- xarray
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ classifiers = [
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering",
]
dynamic = ["version"]
Expand Down

0 comments on commit 8e226e8

Please sign in to comment.