Update pythonpackage.yml
This commit is contained in:
parent
a30432f6b5
commit
a00531e138
1 changed files with 4 additions and 7 deletions
11
.github/workflows/pythonpackage.yml
vendored
11
.github/workflows/pythonpackage.yml
vendored
|
|
@ -31,8 +31,7 @@ jobs:
|
||||||
- name: Setup PostgreSQL database
|
- name: Setup PostgreSQL database
|
||||||
if: ${{ matrix.TESTING_DB == 'postgresql' }}
|
if: ${{ matrix.TESTING_DB == 'postgresql' }}
|
||||||
run: |
|
run: |
|
||||||
psql --version
|
psql --versiont
|
||||||
sudo service postgresql start
|
|
||||||
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;"
|
||||||
|
|
@ -41,14 +40,12 @@ jobs:
|
||||||
if: ${{ matrix.TESTING_DB == 'mysql' }}
|
if: ${{ matrix.TESTING_DB == 'mysql' }}
|
||||||
uses: mirromutth/mysql-action@v1.1
|
uses: mirromutth/mysql-action@v1.1
|
||||||
with:
|
with:
|
||||||
mysql version: '8.0'
|
mysql version: '8.0'
|
||||||
mysql_user: root
|
mysql root password: 'root'
|
||||||
mysql_password: root
|
|
||||||
- name: Setup MySQL database
|
- name: Setup MySQL database
|
||||||
if: ${{ matrix.TESTING_DB == 'mysql' }}
|
if: ${{ matrix.TESTING_DB == 'mysql' }}
|
||||||
run: |
|
run: |
|
||||||
mysql --version
|
mysql --version
|
||||||
sudo service mysql start
|
|
||||||
mysql -u root -e "CREATE DATABASE evennia CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;"
|
mysql -u root -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 -e "CREATE USER 'evennia'@'localhost' IDENTIFIED BY 'password';"
|
||||||
mysql -u root -e "GRANT ALL ON *.* TO 'evennia'@'localhost' IDENTIFIED BY 'password';"
|
mysql -u root -e "GRANT ALL ON *.* TO 'evennia'@'localhost' IDENTIFIED BY 'password';"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue