This PR adds a GitHub Actions workflow to run the tests automatically. The workflow is currently failing with the error below, see the full log here.
I think that this error arises because the implementation is not (yet) structured as a proper package.
______________________ ERROR collecting test_resultify.py ______________________
ImportError while importing test module '/home/runner/work/osemosys2iamc/osemosys2iamc/test_resultify.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/opt/hostedtoolcache/Python/3.10.4/x64/lib/python3.10/importlib/__init__.py:126: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
test_resultify.py:5: in <module>
from .resultify import extract_results, filter_var_cost, filter_fuel, filter_emission, filter_emission_tech, filter_ProdByTechAn, filter_final_energy, filter_capacity
E ImportError: attempted relative import with no known parent package
This PR adds a GitHub Actions workflow to run the tests automatically. The workflow is currently failing with the error below, see the full log here.
I think that this error arises because the implementation is not (yet) structured as a proper package.