mirror of
https://github.com/evennia/evennia.git
synced 2026-03-16 21:06:30 +01:00
Test with different coverage setup
This commit is contained in:
parent
37b39062a0
commit
ae8140e00e
1 changed files with 6 additions and 9 deletions
15
.github/workflows/pythonpackage.yml
vendored
15
.github/workflows/pythonpackage.yml
vendored
|
|
@ -90,23 +90,20 @@ jobs:
|
|||
|
||||
- name: Run test
|
||||
run: |
|
||||
echo `pwd`
|
||||
echo `ls`
|
||||
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
|
||||
|
||||
# we only want to run coverall once, so we only do it for one of the matrix combinations
|
||||
- name: Run coverall
|
||||
- name: Send to Coveralls
|
||||
if: ${{ matrix.TESTING_DB == 'sqlite3' && matrix.python-version == 3.7 }}
|
||||
uses: coverallsapp/github-action@v1.1.1
|
||||
with:
|
||||
coveralls_repo_token: ${{ secrets.COVERALLS_REPO_TOKEN }}
|
||||
run: |
|
||||
coveralls
|
||||
coverage xml
|
||||
github-token: ${{ secrets.GITHUB_TOKEN }} # in-built, need not be set up manually
|
||||
path-to-lcov: ./testing_mygame/.coverage
|
||||
|
||||
- name: Report coverage to codacy
|
||||
- name: Send to Codacity
|
||||
if: ${{ matrix.TESTING_DB == 'sqlite3' && matrix.python-version == 3.7 }}
|
||||
uses: codacy/codacy-coverage-reporter-action@master
|
||||
with:
|
||||
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
|
||||
coverage-reports: coverage.xml
|
||||
coverage-reports: ./testing_mygame/.coverage
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue