Skip to content

Commit 937a60d

Browse files
committed
cover current directory
1 parent 9e415d9 commit 937a60d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/test-python-code.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,9 @@ jobs:
112112
run: |
113113
if [ ${{ github.repository_owner_id }} = ${{ env.OCADO_TECH_ORG_ID }} ]
114114
then
115-
pipenv run pytest -n=auto --cov --cov-report=xml:${{ env.COVERAGE_REPORT }} -c=${{ env.PYPROJECT_TOML }} ${{ inputs.source-path }}
115+
pipenv run pytest -n=auto --cov=. --cov-report=xml:${{ env.COVERAGE_REPORT }} -c=${{ env.PYPROJECT_TOML }} ${{ inputs.source-path }}
116116
else
117-
pipenv run pytest -n=auto --cov --cov-fail-under=90 -c=${{ env.PYPROJECT_TOML }} ${{ inputs.source-path }}
117+
pipenv run pytest -n=auto --cov=. --cov-fail-under=90 -c=${{ env.PYPROJECT_TOML }} ${{ inputs.source-path }}
118118
fi
119119
120120
- name: 📈 Upload Coverage Reports to Codecov

.submodules/configs.jsonc

+1-1
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@
208208
],
209209
"!python.testing.pytestArgs": [
210210
"-n=auto",
211-
"--cov",
211+
"--cov=.",
212212
"--cov-report=html",
213213
"-c=pyproject.toml",
214214
"."

0 commit comments

Comments
 (0)