Skip to content

Commit b93840d

Browse files
committed
fixes and re-enable mysql.
1 parent 774bacc commit b93840d

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

.github/workflows/ci-test.yml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ jobs:
2828
# os: [ubuntu-latest, macos-latest, windows-latest]
2929

3030
env:
31-
# OS: ${{ matrix.os }}
32-
PYTHON_VERSION: ${{ matrix.python-version }}
31+
# OS: ${{ matrix.os }}
32+
- PYTHON_VERSION: ${{ matrix.python-version }}
3333

3434
steps:
3535
# Checkout the latest code from the repo
@@ -57,19 +57,13 @@ jobs:
5757
sudo -u postgres psql -c "CREATE ROLE rounduptest WITH CREATEDB LOGIN PASSWORD 'rounduptest';" -U postgres
5858
5959
- name: Install mysql/mariadb
60-
if: ${{ false }}
6160
run: |
6261
sudo apt-get install mysql-server mysql-client
6362
# set up mysql database
6463
sudo sed -i -e '/^\[mysqld\]/,/^\[mysql/s/^max_allowed_packet.*/max_allowed_packet = 500M/' /etc/mysql/my.cnf
6564
cat /etc/mysql/my.cnf
6665
sudo service mysql restart
67-
mysql -u root -e 'GRANT ALL ON rounduptest.* TO rounduptest@localhost IDENTIFIED BY "rounduptest";'
68-
# HACK: workaround mysql bug: http://bugs.mysql.com/bug.php?id=74901
69-
# needed for test_mysql.mysqlDBTest.testFilteringSpecialChars
70-
# plus others. Otherwise we get:
71-
# COLLATION 'utf8_bin' is not valid for CHARACTER SET 'utf8mb4'
72-
# sed -i 's/CREATE DATABASE \%s/CREATE DATABASE \%s COLLATE utf8_general_ci/' roundup/backends/back_mysql.py
66+
sudo mysql -u root -e 'GRANT ALL ON rounduptest.* TO rounduptest@localhost IDENTIFIED BY "rounduptest";'
7367
7468
- name: Update pip
7569
run: python -m pip install --upgrade pip

0 commit comments

Comments
 (0)