WSL/SLF GitLab Repository

Commit fbb81d98 authored by Aschauer's avatar Aschauer
Browse files

Merge branch 'ci' into 'master'

Run tests with gitlab ci on every commit

See merge request !1
parents d61664c9 24a72a6f
Pipeline #1326 passed with stage
in 11 minutes and 17 seconds
image: python:3.9
- python -m pip install --upgrade pip
- python -m pip install tox
- tox
\ No newline at end of file
......@@ -368,7 +368,7 @@ def test_timestep_from_nc_against_apply_swe2hs(
[f for f in outdir.glob('*.nc')],
)['HS'].transpose('lon', 'lat', 'time')
)['HS'].transpose('lon', 'lat', 'time').sortby('time')
xr.testing.assert_allclose(hs_from_apply_swe2hs_call, hs_from_timesteps)
......@@ -414,7 +414,7 @@ def test_date_inconsitency(
hs_from_timesteps = (xr
.concat(hs_from_timesteps, dim='time')
.transpose('lon', 'lat', 'time')
.transpose('lon', 'lat', 'time').sortby('time')
with pytest.raises(AssertionError):
xr.testing.assert_allclose(hs_from_apply_swe2hs_call, hs_from_timesteps)
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment