Test setting up databases for github actions
This commit is contained in:
parent
2616bd5ab5
commit
24b103b7e0
1 changed files with 11 additions and 1 deletions
12
.github/workflows/pythonpackage.yml
vendored
12
.github/workflows/pythonpackage.yml
vendored
|
|
@ -1,7 +1,7 @@
|
||||||
# This Evennia workflow will install Python dependencies, run tests with a variety of Python versions
|
# This Evennia workflow will install Python dependencies, run tests with a variety of Python versions
|
||||||
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
|
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
|
||||||
|
|
||||||
name: Evennia
|
name: Evennia test-suite and coveralls
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
|
|
@ -17,6 +17,16 @@ jobs:
|
||||||
matrix:
|
matrix:
|
||||||
python-version: [3.5, 3.6, 3.7, 3.8]
|
python-version: [3.5, 3.6, 3.7, 3.8]
|
||||||
TESTING_DB: [sqlite3, postgresql, mysql]
|
TESTING_DB: [sqlite3, postgresql, mysql]
|
||||||
|
services:
|
||||||
|
postgres:
|
||||||
|
image: postgres
|
||||||
|
options: >-
|
||||||
|
--health-cmd pg_isready
|
||||||
|
--health-interval 10s
|
||||||
|
--health-timeout 5s
|
||||||
|
--health-retries 5
|
||||||
|
mysql:
|
||||||
|
image: mysql
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue