diff .github/workflows/ci-test.yml @ 6841:3671c0f6352e

More fixes to yaml using linter: https://rhysd.github.io/actionlint/
author John Rouillard <rouilj@ieee.org>
date Wed, 31 Aug 2022 17:56:55 -0400
parents 8ee17804086e
children d8d4600c49eb
line wrap: on
line diff
--- a/.github/workflows/ci-test.yml	Wed Aug 31 17:40:31 2022 -0400
+++ b/.github/workflows/ci-test.yml	Wed Aug 31 17:56:55 2022 -0400
@@ -53,21 +53,21 @@
           sudo sed -i -e '$a\fsync = off' /etc/postgresql/*/*/postgresql.conf
           sudo service postgresql restart; sleep 30
           # set up postgresql database
-           psql -c "CREATE ROLE rounduptest WITH CREATEDB LOGIN PASSWORD 'rounduptest';" -U postgres
+          psql -c "CREATE ROLE rounduptest WITH CREATEDB LOGIN PASSWORD 'rounduptest';" -U postgres
 
       - name: Install mysql
         run: |
-        apt-get install mysql
-        # set up mysql database
-        sudo sed -i -e '/^\[mysqld\]/,/^\[mysql/s/^max_allowed_packet.*/max_allowed_packet = 500M/' /etc/mysql/my.cnf
-        cat /etc/mysql/my.cnf
-        sudo service mysql restart
-        mysql -u root -e 'GRANT ALL ON rounduptest.* TO rounduptest@localhost IDENTIFIED BY "rounduptest";'
-        # HACK: workaround mysql bug: http://bugs.mysql.com/bug.php?id=74901
-        #   needed for test_mysql.mysqlDBTest.testFilteringSpecialChars
-        # plus others. Otherwise we get:
-        # COLLATION 'utf8_bin' is not valid for CHARACTER SET 'utf8mb4'
-         sed -i 's/CREATE DATABASE \%s/CREATE DATABASE \%s COLLATE utf8_general_ci/' roundup/backends/back_mysql.py
+          apt-get install mysql
+          # set up mysql database
+          sudo sed -i -e '/^\[mysqld\]/,/^\[mysql/s/^max_allowed_packet.*/max_allowed_packet = 500M/' /etc/mysql/my.cnf
+          cat /etc/mysql/my.cnf
+          sudo service mysql restart
+          mysql -u root -e 'GRANT ALL ON rounduptest.* TO rounduptest@localhost IDENTIFIED BY "rounduptest";'
+          # HACK: workaround mysql bug: http://bugs.mysql.com/bug.php?id=74901
+          #   needed for test_mysql.mysqlDBTest.testFilteringSpecialChars
+          # plus others. Otherwise we get:
+          # COLLATION 'utf8_bin' is not valid for CHARACTER SET 'utf8mb4'
+          sed -i 's/CREATE DATABASE \%s/CREATE DATABASE \%s COLLATE utf8_general_ci/' roundup/backends/back_mysql.py
 
       - name: Update pip
         run: python -m pip install --upgrade pip
@@ -84,7 +84,7 @@
         # if zstd fails install, keep going with test, don't abort
         run: |
           pip install zstd || true
-          if "$${{ PYTHON_VERSION }} != "2."* ]]; then 
+          if "$${{ matrix.python-version }}" != "2."* ]]; then 
               pip install Markdown; fi
 
       - name: Install pytest and other packages needed for running tests

Roundup Issue Tracker: http://roundup-tracker.org/