Further testing

This commit is contained in:
Griatch 2020-05-17 12:05:51 +02:00
parent ffafda283b
commit 3e92d62b78

View file

@ -27,6 +27,7 @@ jobs:
with:
postgresql version: '10.7'
postgresql user: 'postgres'
postgresql password: 'postgres'
- uses: mirromutth/mysql-action@v1.1
if: ${{ matrix.TESTING_DB == 'mysql'}}
with:
@ -48,9 +49,12 @@ jobs:
if: ${{ matrix.TESTING_DB == 'postgresql' }}
run: |
psql --version
psql -U postgres -w -c "CREATE DATABASE evennia;"
psql -U postgres -w -c "CREATE USER evennia WITH PASSWORD 'password';"
psql -U postgres -w -c "ALTER USER evennia CREATEDB;"
psql postgreqsl://postgres:postgres@localhost:5432/postgres -c "CREATE DATABASE evennia;"
psql postgreqsl://postgres:postgres@localhost:5432/postgres -c "CREATE USER evennia WITH PASSWORD 'password';"
psql postgreqsl://postgres:postgres@localhost:5432/postgres -c "ALTER USER evennia CREATED;"
# psql -U postgres -w -c "CREATE DATABASE evennia;"
# psql -U postgres -w -c "CREATE USER evennia WITH PASSWORD 'password';"
# psql -U postgres -w -c "ALTER USER evennia CREATEDB;"
- name: Setup MySQL database
if: ${{ matrix.TESTING_DB == 'mysql' }}
run: |
@ -89,7 +93,9 @@ jobs:
- name: run test
run: |
echo `pwd`
coverage run --source=../evennia --omit=*/migrations/*,*/urls.py,*/test*.py,*.sh,*.txt,*.md,*.pyc,*.service ./bin/unix/evennia test --settings=settings --keepdb evennia
echo `ls`
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
# we only want to run coverall once, so we only do it for one of the matrix combinations
- name: run coverall