Test alternative coveralls send

This commit is contained in:
Griatch 2022-10-21 00:38:31 +02:00
parent b3e601c4c8
commit 25dc36af2a

View file

@ -136,6 +136,7 @@ jobs:
--timing \
evennia
coverage xml
coverage report | grep TOTAL
- name: Run test suite
if: matrix.TESTING_DB != 'sqlite3' || matrix.python-version != '3.10'
@ -148,25 +149,26 @@ jobs:
--timing \
evennia
# we only want to run coverall/codacy once, so we only do it for one of the matrix combinations
# we only want to run coverall 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
if: ${{ matrix.TESTING_DB == 'sqlite3' && matrix.python-version == '3.10' }}
continue-on-error: true
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
run: |
cd testing_mygame
coveralls
uses: coverallsapp/github-action@master
with:
base-path: testing_mygame
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Send data to Codacy
if: ${{ matrix.TESTING_DB == 'sqlite3' && matrix.python-version == '3.10' }}
continue-on-error: true
uses: codacy/codacy-coverage-reporter-action@master
with:
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
coverage-reports: ./testing_mygame/coverage.xml
# - name: Send data to Coveralls
# if: ${{ matrix.TESTING_DB == 'sqlite3' && matrix.python-version == '3.10' }}
# continue-on-error: true
# env:
# COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
# run: |
# cd testing_mygame
# coveralls
# docker setup and push
-