mirror of
https://github.com/evennia/evennia.git
synced 2026-03-16 21:06:30 +01:00
Add Codacy variant
This commit is contained in:
parent
01eef3041f
commit
83b926f3fd
1 changed files with 6 additions and 9 deletions
15
.github/workflows/pythonpackage.yml
vendored
15
.github/workflows/pythonpackage.yml
vendored
|
|
@ -74,6 +74,7 @@ jobs:
|
|||
pip install psycopg2-binary
|
||||
pip install mysqlclient
|
||||
pip install coveralls
|
||||
pip install codacy-coverage
|
||||
pip install -e .
|
||||
|
||||
- name: Install extra dependencies # Only develop branch right now
|
||||
|
|
@ -92,19 +93,15 @@ jobs:
|
|||
run: |
|
||||
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 xml
|
||||
|
||||
# we only want to run coverall once, so we only do it for one of the matrix combinations
|
||||
- name: Send to Coveralls
|
||||
- name: Send data to Coveralls / Codacy
|
||||
if: ${{ matrix.TESTING_DB == 'sqlite3' && matrix.python-version == 3.7 }}
|
||||
env:
|
||||
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
|
||||
CODACY_PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }}
|
||||
run: |
|
||||
cd testing_mygame
|
||||
coveralls
|
||||
|
||||
- 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: ./testing_mygame/coverage.xml
|
||||
coverage xml
|
||||
python-codacy-coverage -r coverage.xml
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue