Skip to content

Commit 7c72343

Browse files
committed
More fixes to yaml using linter:
https://rhysd.github.io/actionlint/
1 parent 03aaa39 commit 7c72343

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

.github/workflows/ci-test.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -53,21 +53,21 @@ jobs:
5353
sudo sed -i -e '$a\fsync = off' /etc/postgresql/*/*/postgresql.conf
5454
sudo service postgresql restart; sleep 30
5555
# set up postgresql database
56-
psql -c "CREATE ROLE rounduptest WITH CREATEDB LOGIN PASSWORD 'rounduptest';" -U postgres
56+
psql -c "CREATE ROLE rounduptest WITH CREATEDB LOGIN PASSWORD 'rounduptest';" -U postgres
5757
5858
- name: Install mysql
5959
run: |
60-
apt-get install mysql
61-
# set up mysql database
62-
sudo sed -i -e '/^\[mysqld\]/,/^\[mysql/s/^max_allowed_packet.*/max_allowed_packet = 500M/' /etc/mysql/my.cnf
63-
cat /etc/mysql/my.cnf
64-
sudo service mysql restart
65-
mysql -u root -e 'GRANT ALL ON rounduptest.* TO rounduptest@localhost IDENTIFIED BY "rounduptest";'
66-
# HACK: workaround mysql bug: http://bugs.mysql.com/bug.php?id=74901
67-
# needed for test_mysql.mysqlDBTest.testFilteringSpecialChars
68-
# plus others. Otherwise we get:
69-
# COLLATION 'utf8_bin' is not valid for CHARACTER SET 'utf8mb4'
70-
sed -i 's/CREATE DATABASE \%s/CREATE DATABASE \%s COLLATE utf8_general_ci/' roundup/backends/back_mysql.py
60+
apt-get install mysql
61+
# set up mysql database
62+
sudo sed -i -e '/^\[mysqld\]/,/^\[mysql/s/^max_allowed_packet.*/max_allowed_packet = 500M/' /etc/mysql/my.cnf
63+
cat /etc/mysql/my.cnf
64+
sudo service mysql restart
65+
mysql -u root -e 'GRANT ALL ON rounduptest.* TO rounduptest@localhost IDENTIFIED BY "rounduptest";'
66+
# HACK: workaround mysql bug: http://bugs.mysql.com/bug.php?id=74901
67+
# needed for test_mysql.mysqlDBTest.testFilteringSpecialChars
68+
# plus others. Otherwise we get:
69+
# COLLATION 'utf8_bin' is not valid for CHARACTER SET 'utf8mb4'
70+
sed -i 's/CREATE DATABASE \%s/CREATE DATABASE \%s COLLATE utf8_general_ci/' roundup/backends/back_mysql.py
7171
7272
- name: Update pip
7373
run: python -m pip install --upgrade pip
@@ -84,7 +84,7 @@ jobs:
8484
# if zstd fails install, keep going with test, don't abort
8585
run: |
8686
pip install zstd || true
87-
if "$${{ PYTHON_VERSION }} != "2."* ]]; then
87+
if "$${{ matrix.python-version }}" != "2."* ]]; then
8888
pip install Markdown; fi
8989
9090
- name: Install pytest and other packages needed for running tests

0 commit comments

Comments
 (0)