mirror of
https://github.com/evennia/evennia.git
synced 2026-03-17 05:16:31 +01:00
Further testing
This commit is contained in:
parent
ffafda283b
commit
3e92d62b78
1 changed files with 10 additions and 4 deletions
14
.github/workflows/pythonpackage.yml
vendored
14
.github/workflows/pythonpackage.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue