Skip to content

Commit

Permalink
test: numpy 1.26 not available with python3.13
Browse files Browse the repository at this point in the history
  • Loading branch information
renaudjester committed Nov 20, 2024
1 parent 34fb852 commit 4c7b7ba
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/dependencies-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: Dependencies tests
on:
schedule:
- cron: '0 0 * * 6'
pull_request:

jobs:
test-dependencies-combinations:
Expand Down
8 changes: 8 additions & 0 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,14 @@ def tests(session, xarray_version, dask_version, boto3_version, numpy_version):
)
session.skip()

# Numpy 1.26.0 is not supported with python 3.13
if numpy_version == "1.26" and session.python == "3.13":
session.log(
f"Skipping unsupported combination: "
f"numpy={numpy_version} and python={session.python}"
)
session.skip()

session.install(
format_to_correct_pip_command("xarray", xarray_version),
format_to_correct_pip_command("dask", dask_version),
Expand Down
1 change: 1 addition & 0 deletions tests_dependencies_versions/test_basic_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ def test_describe(self):
"describe",
]
self.output = execute_in_terminal(command)
assert self.output.returncode == 0
json.loads(self.output.stdout)

def test_subset(self, tmp_path):
Expand Down

0 comments on commit 4c7b7ba

Please sign in to comment.