Skip to content

Commit 9ddfd31

Browse files
authored
Uploading coverage results as part of CI (#281)
* Take into account the .coveragerc file * Generate HTML report for coverage * Upload Coverage report as an artifact * Missing dash causing pytest not to generate HTML report
1 parent fe83b99 commit 9ddfd31

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,13 @@ jobs:
187187
- name: Unit Testing
188188
run: make unittest
189189

190+
- name: Upload Coverage Results
191+
uses: actions/upload-artifact@v2
192+
with:
193+
name: HTML-Coverage
194+
path: cov_html
195+
retention-days: 7
196+
190197
- name: Check package
191198
run: |
192199
pip install twine

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@ test-import:
2727
unittest:
2828
@echo "Running unittest"
2929
@pip install -r requirements_test.txt
30-
@pytest -v --cov=ansys.fluent --cov-report=term
30+
@pytest -v --cov=ansys.fluent --cov-report html:cov_html --cov-config=.coveragerc

0 commit comments

Comments
 (0)