Skip to content

Commit

Permalink
Merge pull request #43 from openclimatefix/jacob/coverage-update
Browse files Browse the repository at this point in the history
Update Coverage
  • Loading branch information
jacobbieker committed Jul 10, 2023
2 parents 5429e3c + 1e6d731 commit f44eba1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/python-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ jobs:
echo "Will be looking at coverage of dir ${{ inputs.pytest_cov_dir }}"
#
# install pytest-cov
pip install coverage==6.2 # https://github.com/nedbat/coveragepy/issues/1312
pip install coverage
pip install pytest-cov
#
# make PYTESTCOV
Expand All @@ -118,7 +118,8 @@ jobs:
if [ ${{ inputs.test_dir }} != '' ]; then cd ${{ inputs.test_dir }}; fi
eval $PYTEST_COMMAND
- name: Show coverage
run: coverage report -m
run: |
if [ ${{ inputs.test_dir }} != '' ]; then coverage report -m --data-infile="${{ inputs.test_dir }}/.coverage"; else coverage report -m; fi
- name: "Upload coverage to Codecov"
uses: codecov/codecov-action@v2
with:
Expand Down

0 comments on commit f44eba1

Please sign in to comment.