Move codacy into main action
This commit is contained in:
parent
8b90602808
commit
92e9e07f34
2 changed files with 16 additions and 17 deletions
17
.github/workflows/codacy-coverage-reporter.yml
vendored
17
.github/workflows/codacy-coverage-reporter.yml
vendored
|
|
@ -1,17 +0,0 @@
|
||||||
# This sends coverage reports to codacy
|
|
||||||
#
|
|
||||||
name: codacy-coverage-reporter
|
|
||||||
|
|
||||||
on: ["push"]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
codacy-coverage-reporter:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
name: codacy-coverage-reporter
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@master
|
|
||||||
- name: Run codacy-coverage-reporter
|
|
||||||
uses: codacy/codacy-coverage-reporter-action@master
|
|
||||||
with:
|
|
||||||
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
|
|
||||||
coverage-reports: coverage.xml
|
|
||||||
16
.github/workflows/pythonpackage.yml
vendored
16
.github/workflows/pythonpackage.yml
vendored
|
|
@ -89,5 +89,21 @@ jobs:
|
||||||
|
|
||||||
- name: run test
|
- name: run test
|
||||||
run: |
|
run: |
|
||||||
|
echo `pwd`
|
||||||
|
echo `ls`
|
||||||
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
|
||||||
|
|
||||||
|
# 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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue