diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 04dc7179a..383d6e50d 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -77,11 +77,11 @@ jobs: shell: bash working-directory: ${{runner.workspace}}/nmodl run: | - (cd ..; lcov --capture --initial --directory . --no-external --output-file build/coverage-base.info --exclude "*/ext/*") - ctest --output-on-failure - (cd ..; lcov --capture --directory . --no-external --output-file build/coverage-run.info --exclude "*/ext/*") - lcov --add-tracefile coverage-base.info --add-tracefile coverage-run.info --output-file coverage.info - lcov --list coverage.info + lcov --capture --initial --directory . --no-external --output-file build/coverage-base.info --exclude "*/ext/*" + (cd build; ctest --output-on-failure) + lcov --capture --directory . --no-external --output-file build/coverage-run.info --exclude "*/ext/*" + (cd build; lcov --add-tracefile coverage-base.info --add-tracefile coverage-run.info --output-file coverage.info) + (cd build; lcov --list coverage.info) - uses: codecov/codecov-action@v3 with: files: ./build/coverage.info