Closed andrewphilipsmith closed 2 years ago
At present, the test pyveg/tests/test_combiner_modules.py::test_combine
is skipped on CI, but runs locally. When this issue is fixed, this test should be re-enabled on CI.
This issue has been moved to the upstream repo https://github.com/alan-turing-institute/monitoring-ecosystem-resilience/issues/492
How to reproduce
1). Make a shallow clone of the git repo:
2). Run a unit test which
Expect behaviour
The function
pyveg/src/file_utils.py::get_tags()
should produce a meaningful version string, when operating without a full git clone.Actual behaviour
The function
pyveg/src/file_utils.py::get_tags()
, calls the subprocessgit describe --tags
. This generates the error message (sterr):fatal: No names found, cannot describe anything.
The function
pyveg/src/file_utils.py::get_tags()
returns an empty string.Note:
The scenario occurs when running testing in GitHub Actions, where shallow clones are the default.