Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,10 @@ jobs:
- name: Checkout and use lfs
uses: actions/checkout@v2
with:
lfs: true
- name: Download LFS
run: git lfs checkout
# lfs: true
lfs: false
# - name: Download LFS
# run: git lfs checkout
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
Expand All @@ -37,6 +38,8 @@ jobs:
run: |
pip install pytest pytest-cov
pytest --import-mode=append --cov-config=.coveragerc --cov=ruins --cov-report=xml
env:
NO_LFS: true

- name: Upload coverage to codecov
uses: codecov/codecov-action@v2
Expand Down
9 changes: 9 additions & 0 deletions ruins/tests/test_datamanager.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
import xarray as xr
import os

from ruins.core import DataManager
from ruins.core.data_manager import HDF5Source

# some datasources are backed by git-lfs which have to be disabled on
# github actions
NO_LFS = 'NO_LFS' in os.environ


def test_default_manager():
"""Instantiate the default data manager"""
Expand All @@ -27,5 +32,9 @@ def test_weather_dataset():
assert isinstance(weather, HDF5Source)

# load the data
if NO_LFS:
print('No LFS, skipping partial test')
return

data = weather.read()
assert isinstance(data, xr.Dataset)