Skip to content

Commit

Permalink
Merge pull request #39 from CassiaCai/refactoring-testing
Browse files Browse the repository at this point in the history
Refactoring testing
  • Loading branch information
CassiaCai authored Jan 26, 2024
2 parents 9737f5c + 625f7e4 commit 04f9348
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:

steps:
- name: Check out repository code
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v1
with:
Expand Down
1 change: 1 addition & 0 deletions mhw_measures/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from .measures import *
3 changes: 1 addition & 2 deletions mhw_measures/measures_dict.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import xarray as xr

from mhw_measures.measures import *

def merged_by_objid(
mask_field: xr.Dataset,
Expand Down Expand Up @@ -171,4 +170,4 @@ def measures_dict(
data_dict['com_xrcoords_ls'].append(com_xrcoords_ls)
data_dict['first_time'].append(first_time)

return data_dict
return data_dict
4 changes: 2 additions & 2 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ haversine
xarray
netcdf4
s3fs
asyncio
intake
expectexception
pytest

scipy
scikit-image
2 changes: 2 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@ s3fs
asyncio
intake
expectexception
scipy
scikit-image
5 changes: 5 additions & 0 deletions test_measures.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
def test_import():
try:
import mhw_measures
except ImportError:
no_requests = True

0 comments on commit 04f9348

Please sign in to comment.