diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 544b244..dc89513 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -22,6 +22,10 @@ jobs: include: - os: "ubuntu-latest" python-version: '3.8' # first supported + - os: "windows-latest" + python-version: '3.8' # first supported + - os: "macos-latest" + python-version: '3.8' # first supported - os: "ubuntu-latest" python-version: '3.12' # latest supported - os: "windows-latest" @@ -38,7 +42,7 @@ jobs: miniconda-version: "latest" auto-update-conda: true python-version: ${{ matrix.python-version }} - environment-file: environment.yml + #environment-file: environment.yml activate-environment: pygeogrids auto-activate-base: false - name: Print environment infos diff --git a/setup.cfg b/setup.cfg index ac9f41f..6f3beb3 100644 --- a/setup.cfg +++ b/setup.cfg @@ -36,6 +36,7 @@ install_requires = netCDF4 pyproj pykdtree + scipy # The usage of test_requires is discouraged, see `Dependency Management` docs tests_require = pytest; pytest-cov # Require a specific Python version, e.g. Python 2.7 or >= 3.4 diff --git a/tests/test_grid.py b/tests/test_grid.py index 042d6f1..4f7a391 100644 --- a/tests/test_grid.py +++ b/tests/test_grid.py @@ -153,13 +153,15 @@ def test_nearest_neighbor_max_dist(self): assert lat == 18.5 # test with maxdist lower than nearest point - gpi, dist = self.grid.find_nearest_gpi(14.3, 18.5, max_dist=10000) + with pytest.warns(UserWarning): + gpi, dist = self.grid.find_nearest_gpi(14.3, 18.5, max_dist=10000) assert gpi == np.iinfo(np.int32).max assert dist == np.inf # test with custom gpi, see issue #68 grid = grids.BasicGrid(lon=[16,17], lat=[45,46], gpis=[100,200]) - gpi, dist = grid.find_nearest_gpi(0,0, max_dist=1000) + with pytest.warns(UserWarning): + gpi, dist = grid.find_nearest_gpi(0,0, max_dist=1000) assert gpi == np.iinfo(np.int32).max assert dist == np.inf