Some refactoring
This commit is contained in:
parent
f84b86f27a
commit
82ee3c6899
1 changed files with 9 additions and 8 deletions
17
.github/workflows/pythonpackage.yml
vendored
17
.github/workflows/pythonpackage.yml
vendored
|
|
@ -20,15 +20,17 @@ jobs:
|
||||||
fail-fast: False
|
fail-fast: False
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
|
||||||
|
|
||||||
- uses: harmon758/postgresql-action@v1
|
- uses: actions/checkout@v2
|
||||||
|
- name: Set up PostgreSQL server
|
||||||
|
uses: harmon758/postgresql-action@v1
|
||||||
if: ${{ matrix.TESTING_DB == 'postgresql' }}
|
if: ${{ matrix.TESTING_DB == 'postgresql' }}
|
||||||
with:
|
with:
|
||||||
postgresql version: '10.7'
|
postgresql version: '10.7'
|
||||||
postgresql user: 'postgres'
|
postgresql user: 'postgres'
|
||||||
postgresql password: 'postgres'
|
postgresql password: 'postgres'
|
||||||
- uses: mirromutth/mysql-action@v1.1
|
- name: Set up MySQL server
|
||||||
|
uses: mirromutth/mysql-action@v1.1
|
||||||
if: ${{ matrix.TESTING_DB == 'mysql'}}
|
if: ${{ matrix.TESTING_DB == 'mysql'}}
|
||||||
with:
|
with:
|
||||||
mysql version: '8.0'
|
mysql version: '8.0'
|
||||||
|
|
@ -72,7 +74,6 @@ jobs:
|
||||||
pip install psycopg2-binary
|
pip install psycopg2-binary
|
||||||
pip install mysqlclient
|
pip install mysqlclient
|
||||||
pip install coveralls
|
pip install coveralls
|
||||||
pip install codacy-coverage
|
|
||||||
pip install -e .
|
pip install -e .
|
||||||
|
|
||||||
- name: Install extra dependencies # Only develop branch right now
|
- name: Install extra dependencies # Only develop branch right now
|
||||||
|
|
@ -87,7 +88,7 @@ jobs:
|
||||||
evennia migrate
|
evennia migrate
|
||||||
evennia collectstatic --noinput
|
evennia collectstatic --noinput
|
||||||
|
|
||||||
- name: run test
|
- name: Run test
|
||||||
run: |
|
run: |
|
||||||
echo `pwd`
|
echo `pwd`
|
||||||
echo `ls`
|
echo `ls`
|
||||||
|
|
@ -95,14 +96,14 @@ 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
|
||||||
|
|
||||||
# we only want to run coverall 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
|
||||||
- name: run coverall
|
- name: Run coverall
|
||||||
if: ${{ matrix.TESTING_DB == 'sqlite3' && matrix.python-version == 3.7 }}
|
if: ${{ matrix.TESTING_DB == 'sqlite3' && matrix.python-version == 3.7 }}
|
||||||
run: |
|
run: |
|
||||||
coveralls
|
coveralls
|
||||||
coverage xml
|
coverage xml
|
||||||
python-codacy-coverage -r coverage.xml
|
|
||||||
|
|
||||||
- name: codacy-coverage-reporter
|
- name: Report coverage to codacy
|
||||||
|
if: ${{ matrix.TESTING_DB == 'sqlite3' && matrix.python-version == 3.7 }}
|
||||||
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