diff --git a/.github/workflows/dependencies-tests.yml b/.github/workflows/dependencies-tests.yml index 2575f644..e06e2c05 100644 --- a/.github/workflows/dependencies-tests.yml +++ b/.github/workflows/dependencies-tests.yml @@ -3,6 +3,7 @@ name: Dependencies tests on: schedule: - cron: '0 0 * * 6' + pull_request: jobs: test-dependencies-combinations: diff --git a/noxfile.py b/noxfile.py index cdc8d9fa..b8f38a2d 100644 --- a/noxfile.py +++ b/noxfile.py @@ -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), diff --git a/tests_dependencies_versions/test_basic_commands.py b/tests_dependencies_versions/test_basic_commands.py index 95a41cab..abaf5672 100644 --- a/tests_dependencies_versions/test_basic_commands.py +++ b/tests_dependencies_versions/test_basic_commands.py @@ -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):