mirror of
https://github.com/evennia/evennia.git
synced 2026-03-17 05:16:31 +01:00
Try again with syntax fixes
This commit is contained in:
parent
9c85ba2ffb
commit
60d36d309b
1 changed files with 10 additions and 3 deletions
13
.github/workflows/pythonpackage.yml
vendored
13
.github/workflows/pythonpackage.yml
vendored
|
|
@ -16,34 +16,41 @@ jobs:
|
|||
matrix:
|
||||
python-version: [3.7, 3.8]
|
||||
TESTING_DB: [sqlite3, postgresql, mysql]
|
||||
steps:
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Set up Python ${{ matrix.python-version }}
|
||||
uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: ${{ matrix.python-version }}
|
||||
- name: Set up postgreSQL database
|
||||
|
||||
- name: Start postgreSQL server
|
||||
if: ${{ matrix.TESTING_DB == 'postgresql' }}
|
||||
uses: harmon758/postgresql-action@v1
|
||||
with:
|
||||
postgresql version: '11'
|
||||
- name: Setup PostgreSQL database
|
||||
if: ${{ matrix.TESTING_DB == 'postgresql' }}
|
||||
run: |
|
||||
psql --version
|
||||
sudo service postgresql start
|
||||
psql -U postgres -c "CREATE DATABASE evennia;"
|
||||
psql -U postgres -c "CREATE USER evennia WITH PASSWORD 'password';"
|
||||
psql -U postgres -c "ALTER USER evennia CREATEDB;"
|
||||
- name: Set up MySQL database
|
||||
|
||||
- name: Start MySQL server
|
||||
if: ${{ matrix.TESTING_DB == 'mysql' }}
|
||||
uses: mirromutth/mysql-action@v1.1
|
||||
with:
|
||||
mysql version: '8.0'
|
||||
- name: Setup MySQL database
|
||||
if: ${{ matrix.TESTING_DB == 'mysql' }}
|
||||
run: |
|
||||
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 USER 'evennia'@'localhost' IDENTIFIED BY 'password';"
|
||||
mysql -u root -e "GRANT ALL ON *.* TO 'evennia'@'localhost' IDENTIFIED BY 'password';"
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue