Further tests with coveralls
This commit is contained in:
parent
ae8140e00e
commit
84f85e1118
1 changed files with 7 additions and 6 deletions
13
.github/workflows/pythonpackage.yml
vendored
13
.github/workflows/pythonpackage.yml
vendored
|
|
@ -92,18 +92,19 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
cd testing_mygame
|
cd testing_mygame
|
||||||
coverage run --source=../evennia --omit=*/migrations/*,*/urls.py,*/test*.py,*.sh,*.txt,*.md,*.pyc,*.service ../bin/unix/evennia test --settings=settings --keepdb evennia
|
coverage run --source=../evennia --omit=*/migrations/*,*/urls.py,*/test*.py,*.sh,*.txt,*.md,*.pyc,*.service ../bin/unix/evennia test --settings=settings --keepdb evennia
|
||||||
|
coverage xml
|
||||||
|
|
||||||
# we only want to run coverall once, so we only do it for one of the matrix combinations
|
# we only want to run coverall once, so we only do it for one of the matrix combinations
|
||||||
- name: Send to Coveralls
|
- name: Send to Coveralls
|
||||||
if: ${{ matrix.TESTING_DB == 'sqlite3' && matrix.python-version == 3.7 }}
|
env:
|
||||||
uses: coverallsapp/github-action@v1.1.1
|
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
|
||||||
with:
|
run: |
|
||||||
github-token: ${{ secrets.GITHUB_TOKEN }} # in-built, need not be set up manually
|
cd testing_mygame
|
||||||
path-to-lcov: ./testing_mygame/.coverage
|
coveralls
|
||||||
|
|
||||||
- name: Send to Codacity
|
- name: Send to Codacity
|
||||||
if: ${{ matrix.TESTING_DB == 'sqlite3' && matrix.python-version == 3.7 }}
|
if: ${{ matrix.TESTING_DB == 'sqlite3' && matrix.python-version == 3.7 }}
|
||||||
uses: codacy/codacy-coverage-reporter-action@master
|
uses: codacy/codacy-coverage-reporter-action@master
|
||||||
with:
|
with:
|
||||||
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
|
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
|
||||||
coverage-reports: ./testing_mygame/.coverage
|
coverage-reports: ./testing_mygame/coverage.xml
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue