Move codacy into main action

This commit is contained in:
Griatch 2020-05-17 20:18:14 +02:00
parent 8b90602808
commit 92e9e07f34
2 changed files with 16 additions and 17 deletions

View file

@ -89,5 +89,21 @@ 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
if: ${{ matrix.TESTING_DB == 'sqlite3' && matrix.python-version == 3.7 }}
run: |
coveralls
coverage xml
python-codacy-coverage -r coverage.xml
- name: codacy-coverage-reporter
uses: codacy/codacy-coverage-reporter-action@master
with:
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
coverage-reports: coverage.xml