Try again with syntax fixes

This commit is contained in:
Griatch 2020-05-17 00:13:38 +02:00
parent c1093ef09b
commit c9dd0b2e05

View file

@ -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