Continue-on-error for coveralls action
This commit is contained in:
parent
a5bde4b349
commit
aa602fe800
1 changed files with 7 additions and 3 deletions
10
.github/workflows/pythonpackage.yml
vendored
10
.github/workflows/pythonpackage.yml
vendored
|
|
@ -36,7 +36,6 @@ jobs:
|
||||||
uses: mirromutth/mysql-action@v1.1
|
uses: mirromutth/mysql-action@v1.1
|
||||||
if: ${{ matrix.TESTING_DB == 'mysql'}}
|
if: ${{ matrix.TESTING_DB == 'mysql'}}
|
||||||
with:
|
with:
|
||||||
mysql version: '5.7'
|
|
||||||
character set server: 'utf8mb4'
|
character set server: 'utf8mb4'
|
||||||
collation server: 'utf8mb4_unicode_ci'
|
collation server: 'utf8mb4_unicode_ci'
|
||||||
mysql database: 'evennia'
|
mysql database: 'evennia'
|
||||||
|
|
@ -73,7 +72,7 @@ jobs:
|
||||||
if: ${{ github.ref == 'refs/heads/develop' }}
|
if: ${{ github.ref == 'refs/heads/develop' }}
|
||||||
run: pip install -r requirements_extra.txt
|
run: pip install -r requirements_extra.txt
|
||||||
|
|
||||||
- name: Install and initialize evennia
|
- name: Initialize evennia
|
||||||
run: |
|
run: |
|
||||||
evennia --init testing_mygame
|
evennia --init testing_mygame
|
||||||
cp .travis/${{ matrix.TESTING_DB }}_settings.py testing_mygame/server/conf/settings.py
|
cp .travis/${{ matrix.TESTING_DB }}_settings.py testing_mygame/server/conf/settings.py
|
||||||
|
|
@ -87,16 +86,21 @@ jobs:
|
||||||
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
|
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/codacy once, so we only do it for one of the matrix combinations
|
||||||
|
# it's also not critical if pushing to either service fails (happens for PRs since env is not
|
||||||
|
# available outside of the evennia org)
|
||||||
- name: Send data to Coveralls
|
- name: Send data to Coveralls
|
||||||
if: ${{ matrix.TESTING_DB == 'sqlite3' && matrix.python-version == 3.7 }}
|
if: ${{ matrix.TESTING_DB == 'sqlite3' && matrix.python-version == 3.7 }}
|
||||||
|
continue-on-error: true
|
||||||
env:
|
env:
|
||||||
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
|
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
|
||||||
run: |
|
run: |
|
||||||
cd testing_mygame
|
cd testing_mygame
|
||||||
coveralls
|
coveralls
|
||||||
|
|
||||||
- name: Send data to Codacy
|
- name: Send data to Codacy
|
||||||
if: ${{ matrix.TESTING_DB == 'sqlite3' && matrix.python-version == 3.7 }}
|
if: ${{ matrix.TESTING_DB == 'sqlite3' && matrix.python-version == 3.7 }}
|
||||||
|
continue-on-error: true
|
||||||
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 }}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue