Skip to content

Commit 2c0fc22

Browse files
committed
Update codacy-coverage-reporter.yaml
1 parent 9db2e8d commit 2c0fc22

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

.github/workflows/codacy-coverage-reporter.yaml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,18 +39,16 @@ jobs:
3939
python -m pip install --upgrade setuptools
4040
python -m pip install --upgrade wheel
4141
pip install --no-cache-dir -r requirements.txt --upgrade
42-
- name: Install pytest, pytest-cov
42+
- name: Install pytest, pytest-cov, coverage
4343
run: |
4444
pip install pytest
45-
pip install pytest-cov
45+
pip install coverage
4646
- name: Generate coverage report
47-
# You must now upload using a token.
48-
# https://app.codecov.io/gh/iKostanOrg/codewars/tests/new
49-
# yamllint disable rule:line-length
47+
# https://coverage.readthedocs.io/en/7.6.10/cmd.html#cmd-run
5048
run: |
5149
python -c "import os; print(os.getcwd())"
52-
python -m pytest . -v --cov-report term-missing --cov-report=xml --cov=./
53-
# yamllint enable rule:line-length
50+
coverage run -m pytest --data-file=cobertura.xml
51+
coverage report -m
5452
- name: List test files
5553
run: |
5654
ls
@@ -61,4 +59,4 @@ jobs:
6159
export CODACY_ORGANIZATION_PROVIDER=gh
6260
export CODACY_USERNAME=iKostanOrg
6361
export CODACY_PROJECT_NAME=codewars
64-
bash <(curl -Ls https://coverage.codacy.com/get.sh) report -r coverage.xml
62+
bash <(curl -Ls https://coverage.codacy.com/get.sh)

0 commit comments

Comments
 (0)