Skip to content

Commit

Permalink
Merge pull request #852 from pangeo-data/dependabot/github_actions/so…
Browse files Browse the repository at this point in the history
…ftprops/action-gh-release-2

Bump softprops/action-gh-release from 1 to 2
  • Loading branch information
Zeitsperre committed Mar 19, 2024
2 parents 80f9907 + fadc5a0 commit 8597308
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 17 deletions.
1 change: 1 addition & 0 deletions .github/workflows/climpred_testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ jobs:
- name: Install climpred[complete]
run: |
python -m pip install -e .[complete]
python -m pip install 'xarray<2024.2.0'
- name: Conda info
run: |
conda info
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-staging-testpypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4
- name: Create Release
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
env:
# This token is provided by Actions, you do not need to create your own token
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion ci/requirements/climpred-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ dependencies:
- mypy
- pre-commit
- pylint
- pytest
- pytest<8
- pytest-cov
- pytest-lazy-fixture
- pytest-sugar
Expand Down
2 changes: 1 addition & 1 deletion ci/requirements/maximum-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ dependencies:
- h5netcdf
- pip
- pooch
- pytest
- pytest<8
- pytest-cov
- pytest-lazy-fixture
- pytest-xdist
Expand Down
2 changes: 1 addition & 1 deletion ci/requirements/minimum-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ dependencies:
- h5netcdf
- pip
- pooch
- pytest
- pytest<8
- pytest-cov
- pytest-lazy-fixture
- pytest-xdist
Expand Down
20 changes: 8 additions & 12 deletions climpred/tests/test_options.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,18 +82,14 @@ def test_climpred_warnings(hindcast_recon_1d_dm, option_bool):
def test_option_resample_iterations_func(hindcast_recon_1d_ym):
"""Singleton dimension makes resample_iterations_idx fail for py < 3.11"""
with climpred.set_options(resample_iterations_func="resample_iterations_idx"):
import sys

if sys.version_info[:3] < (3, 11):
with pytest.raises(ValueError):
hindcast_recon_1d_ym.expand_dims("lon").bootstrap(
metric="mse",
comparison="e2o",
dim="init",
alignment="maximize",
iterations=2,
resample_dim="member",
)
hindcast_recon_1d_ym.expand_dims("lon").bootstrap(
metric="mse",
comparison="e2o",
dim="init",
alignment="maximize",
iterations=2,
resample_dim="member",
)

with climpred.set_options(resample_iterations_func="resample_iterations"):
hindcast_recon_1d_ym.expand_dims("lon").bootstrap(
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
extras_require["test"] = [
"netcdf4",
"pre-commit",
"pytest",
"pytest<8",
"pytest-cov",
"pytest-lazy-fixture",
"pytest-xdist",
Expand Down

0 comments on commit 8597308

Please sign in to comment.