From 3ab64c237636a73bbf4da5b683af6d081ec7cea8 Mon Sep 17 00:00:00 2001 From: Daniel Weindl Date: Thu, 21 Apr 2022 13:09:09 +0200 Subject: [PATCH] Fix CI failures: Invalid directory passed to lcov (#1785) Setuptools [recently changed (>=v62.1.0)](https://github.com/pypa/setuptools/commit/1c23f5e1e4b18b50081cbabb2dea22bf345f5894) the name of the temporary build directory and lcov fails trying to access a non-existent directory (`geninfo: ERROR: cannot read /home/runner/work/AMICI/AMICI/python/sdist/build/temp.linux-x86_64-3.8/amici/src!`). This fixes that. --- .github/workflows/test_python_cplusplus.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test_python_cplusplus.yml b/.github/workflows/test_python_cplusplus.yml index d7fbb7d5ae..e62beea5a8 100644 --- a/.github/workflows/test_python_cplusplus.yml +++ b/.github/workflows/test_python_cplusplus.yml @@ -117,7 +117,7 @@ jobs: -d ${AMICI_DIR}/build/CMakeFiles/amici.dir/src \ -b ${AMICI_DIR} -c -o coverage_cpp.info \ && lcov --compat-libtool --no-external \ - -d ${AMICI_DIR}/python/sdist/build/temp.linux-x86_64-$(python3 --version | sed -E 's/.*([0-9]+\.[0-9]+)\..*/\1/')/amici/src \ + -d ${AMICI_DIR}/python/sdist/build/temp.linux-x86_64-$(python -c "import sys; print(sys.implementation.cache_tag)")/amici/src \ -b ${AMICI_DIR}/python/sdist -c -o coverage_py.info \ && lcov -a coverage_cpp.info -a coverage_py.info -o coverage.info