Update pythonpackage.yml
This commit is contained in:
parent
015e3e52c3
commit
2faa71b093
1 changed files with 11 additions and 15 deletions
26
.github/workflows/pythonpackage.yml
vendored
26
.github/workflows/pythonpackage.yml
vendored
|
|
@ -17,31 +17,27 @@ jobs:
|
||||||
python-version: [3.7, 3.8]
|
python-version: [3.7, 3.8]
|
||||||
TESTING_DB: [sqlite3, postgresql, mysql]
|
TESTING_DB: [sqlite3, postgresql, mysql]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
- uses: harmon758/postgresql-action@v1
|
||||||
|
with:
|
||||||
|
postgresql version: '10.7'
|
||||||
|
postgresql db: postgres
|
||||||
|
- uses: mirromutth/mysql-action@v1.1
|
||||||
|
with:
|
||||||
|
mysql version: '8.0'
|
||||||
|
mysql root password: 'root'
|
||||||
- name: Set up Python ${{ matrix.python-version }}
|
- name: Set up Python ${{ matrix.python-version }}
|
||||||
uses: actions/setup-python@v2
|
uses: actions/setup-python@v2
|
||||||
with:
|
with:
|
||||||
python-version: ${{ matrix.python-version }}
|
python-version: ${{ matrix.python-version }}
|
||||||
|
|
||||||
- name: Start postgreSQL server
|
|
||||||
if: ${{ matrix.TESTING_DB == 'postgresql' }}
|
|
||||||
uses: harmon758/postgresql-action@v1
|
|
||||||
with:
|
|
||||||
postgresql version: '10.7'
|
|
||||||
- name: Setup PostgreSQL database
|
- name: Setup PostgreSQL database
|
||||||
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 -c "CREATE DATABASE evennia;"
|
||||||
psql -U postgres -c "CREATE USER evennia WITH PASSWORD 'password';"
|
psql -U postgres -c "CREATE USER evennia WITH PASSWORD 'password';"
|
||||||
psql -U postgres -c "ALTER USER evennia CREATEDB;"
|
psql -U postgres -c "ALTER USER evennia CREATEDB;"
|
||||||
|
|
||||||
- name: Start MySQL server
|
|
||||||
if: ${{ matrix.TESTING_DB == 'mysql' }}
|
|
||||||
uses: mirromutth/mysql-action@v1.1
|
|
||||||
with:
|
|
||||||
mysql version: '8.0'
|
|
||||||
mysql root password: 'root'
|
|
||||||
- name: Setup MySQL database
|
- name: Setup MySQL database
|
||||||
if: ${{ matrix.TESTING_DB == 'mysql' }}
|
if: ${{ matrix.TESTING_DB == 'mysql' }}
|
||||||
run: |
|
run: |
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue