Skip to content

Commit

Permalink
HACK: Use branch of diracx-charts
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisburr committed Sep 25, 2023
1 parent beccb6a commit ae12abd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 6 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ omit =
src/diracx/client/*
*/site-packages/diracx/client/*

[paths]
source =
src/
*/site-packages/
/diracx_source/*/src/

[report]
exclude_lines =
# Have to re-enable the standard pragma
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
pip install .
- name: Start demo
run: |
git clone https://github.com/DIRACGrid/diracx-charts.git ../diracx-charts
git clone https://github.com/chrisburr/diracx-charts.git ../diracx-charts -b collect-coverage
../diracx-charts/run_demo.sh --enable-coverage --exit-when-done $PWD
- name: Debugging information
run: |
Expand Down Expand Up @@ -85,11 +85,9 @@ jobs:
kubectl delete pod/"${pod_name}"
done
# Combine the coverage data from the demo and make an XML report
coverage_rcfile=$(mktemp)
echo -e '[paths]\nsource =\n src/\n */site-packages/\n /diracx_source/*/src/' > "${coverage_rcfile}"
coverage_data=$(mktemp)
coverage combine --data-file "${coverage_data}" "${DIRACX_DEMO_DIR}"/coverage-reports/*
coverage xml -o coverage-demo.xml --data-file "${coverage_data}" --rcfile="${coverage_rcfile}"
coverage xml -o coverage-demo.xml --data-file "${coverage_data}"
- name: Upload coverage report
uses: codecov/[email protected]
with:
Expand Down

0 comments on commit ae12abd

Please sign in to comment.