Further testing
This commit is contained in:
parent
0cf26f27fa
commit
ffafda283b
1 changed files with 10 additions and 8 deletions
18
.github/workflows/pythonpackage.yml
vendored
18
.github/workflows/pythonpackage.yml
vendored
|
|
@ -26,6 +26,7 @@ jobs:
|
||||||
if: ${{ matrix.TESTING_DB == 'postgresql' }}
|
if: ${{ matrix.TESTING_DB == 'postgresql' }}
|
||||||
with:
|
with:
|
||||||
postgresql version: '10.7'
|
postgresql version: '10.7'
|
||||||
|
postgresql user: 'postgres'
|
||||||
- uses: mirromutth/mysql-action@v1.1
|
- uses: mirromutth/mysql-action@v1.1
|
||||||
if: ${{ matrix.TESTING_DB == 'mysql'}}
|
if: ${{ matrix.TESTING_DB == 'mysql'}}
|
||||||
with:
|
with:
|
||||||
|
|
@ -38,7 +39,7 @@ jobs:
|
||||||
with:
|
with:
|
||||||
time: '10s'
|
time: '10s'
|
||||||
- name:
|
- name:
|
||||||
if: failure()
|
# if: failure()
|
||||||
uses: jwalton/gh-docker-logs@v1.0.0
|
uses: jwalton/gh-docker-logs@v1.0.0
|
||||||
- name: Check running containers
|
- name: Check running containers
|
||||||
run: docker ps -a
|
run: docker ps -a
|
||||||
|
|
@ -47,16 +48,16 @@ jobs:
|
||||||
if: ${{ matrix.TESTING_DB == 'postgresql' }}
|
if: ${{ matrix.TESTING_DB == 'postgresql' }}
|
||||||
run: |
|
run: |
|
||||||
psql --version
|
psql --version
|
||||||
psql -U postgres -c "CREATE DATABASE evennia;"
|
psql -U postgres -w -c "CREATE DATABASE evennia;"
|
||||||
psql -U postgres -c "CREATE USER evennia WITH PASSWORD 'password';"
|
psql -U postgres -w -c "CREATE USER evennia WITH PASSWORD 'password';"
|
||||||
psql -U postgres -c "ALTER USER evennia CREATEDB;"
|
psql -U postgres -w -c "ALTER USER evennia CREATEDB;"
|
||||||
- name: Setup MySQL database
|
- name: Setup MySQL database
|
||||||
if: ${{ matrix.TESTING_DB == 'mysql' }}
|
if: ${{ matrix.TESTING_DB == 'mysql' }}
|
||||||
run: |
|
run: |
|
||||||
mysql --version
|
mysql --version
|
||||||
mysql -u root -e "CREATE DATABASE evennia CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;"
|
mysql -u root -proot -e "CREATE DATABASE evennia CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;"
|
||||||
mysql -u root -e "CREATE USER 'evennia'@'localhost' IDENTIFIED BY 'password';"
|
mysql -u root -proot -e "CREATE USER 'evennia'@'localhost' IDENTIFIED BY 'password';"
|
||||||
mysql -u root -e "GRANT ALL ON *.* TO 'evennia'@'localhost' IDENTIFIED BY 'password';"
|
mysql -u root -proot -e "GRANT ALL ON *.* TO 'evennia'@'localhost' IDENTIFIED BY 'password';"
|
||||||
|
|
||||||
- name: Set up Python ${{ matrix.python-version }}
|
- name: Set up Python ${{ matrix.python-version }}
|
||||||
uses: actions/setup-python@v2
|
uses: actions/setup-python@v2
|
||||||
|
|
@ -87,7 +88,8 @@ jobs:
|
||||||
|
|
||||||
- name: run test
|
- name: run test
|
||||||
run: |
|
run: |
|
||||||
coverage run --source=../evennia --omit=*/migrations/*,*/urls.py,*/test*.py,*.sh,*.txt,*.md,*.pyc,*.service ../bin/unix/evennia test --settings=settings --keepdb evennia
|
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
|
||||||
|
|
||||||
# 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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue