Skip to content

Commit e9e637b

Browse files
author
Matt Mitchell
committed
another try with generated files, only run on energyplus project
1 parent da56f7a commit e9e637b

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

.github/workflows/self_hosted_build_and_test.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,16 @@ jobs:
104104
working-directory: ${{ env.BUILD_DIR }}
105105
run: mkdir -p coverage/unit coverage/integration
106106

107+
- name: Stage generated EnergyPlus sources for coverage
108+
run: |
109+
install -d "${{ github.workspace }}/src/EnergyPlus/embedded"
110+
cp -f "${{ github.workspace }}/${{ env.BUILD_DIR }}/src/EnergyPlus/ConfiguredFunctions.cc" "${{ github.workspace }}/src/EnergyPlus/ConfiguredFunctions.cc"
111+
cp -f "${{ github.workspace }}/${{ env.BUILD_DIR }}/src/EnergyPlus/DataStringGlobals.cc" "${{ github.workspace }}/src/EnergyPlus/DataStringGlobals.cc"
112+
cp -f "${{ github.workspace }}/${{ env.BUILD_DIR }}/idd/embedded/EmbeddedEpJSONSchema.cc" "${{ github.workspace }}/src/EnergyPlus/embedded/EmbeddedEpJSONSchema.cc"
113+
107114
- name: Generate raw unit test coverage results
108115
working-directory: ${{ env.BUILD_DIR }}
109-
run: lcov -c -d . -o coverage/unit/lcov.output --no-external --base-directory ../src/EnergyPlus/ --ignore-errors source
116+
run: lcov -c -d ./src/EnergyPlus -o coverage/unit/lcov.output --no-external --base-directory ../src/EnergyPlus/ --ignore-errors source
110117

111118
- name: Generate filtered unit test coverage results
112119
working-directory: ${{ env.BUILD_DIR }}
@@ -139,7 +146,7 @@ jobs:
139146
140147
- name: Generate raw integration test coverage results
141148
working-directory: ${{ env.BUILD_DIR }}
142-
run: lcov -c -d . -o coverage/integration/lcov.output --no-external --base-directory ../src/EnergyPlus/ --ignore-errors source
149+
run: lcov -c -d ./src/EnergyPlus -o coverage/integration/lcov.output --no-external --base-directory ../src/EnergyPlus/ --ignore-errors source
143150

144151
- name: Generate filtered integration test coverage results
145152
working-directory: ${{ env.BUILD_DIR }}

0 commit comments

Comments
 (0)