fix .coveragerc

This commit is contained in:
Sina Atalay 2023-10-14 22:47:44 +02:00
parent d639e11651
commit b19216b733
1 changed files with 4 additions and 2 deletions

View File

@ -56,7 +56,8 @@ jobs:
run: | run: |
pip install pytest pytest-cov pip install pytest pytest-cov
touch .coveragerc touch .coveragerc
echo $"[run]\nrelative_files = True" > .coveragerc echo "[run]" > .coveragerc
echo "relative_files = True" >> .coveragerc
pytest --cov="rendercv" tests/ pytest --cov="rendercv" tests/
mv .coverage .coverage.${{ matrix.python-version }}.${{ matrix.os }} mv .coverage .coverage.${{ matrix.python-version }}.${{ matrix.os }}
@ -91,7 +92,8 @@ jobs:
pip install coverage pip install coverage
ls -la coverage ls -la coverage
touch .coveragerc touch .coveragerc
echo $"[run]\nrelative_files = True" > .coveragerc echo "[run]" > .coveragerc
echo "relative_files = True" >> .coveragerc
coverage combine coverage coverage combine coverage
coverage report coverage report
coverage html --show-contexts --title "RenderCV coverage for ${{ github.sha }}" coverage html --show-contexts --title "RenderCV coverage for ${{ github.sha }}"