diff .github/workflows/ci-test.yml @ 6877:ac2b8a8f5727

fix mysql SQL to create user and grant. set max jobs in parallel add example of how to allow a python version to fail but not fail test.
author John Rouillard <rouilj@ieee.org>
date Thu, 01 Sep 2022 10:52:42 -0400
parents 30656a34e2dd
children 81d811b8d45f
line wrap: on
line diff
--- a/.github/workflows/ci-test.yml	Thu Sep 01 10:39:30 2022 -0400
+++ b/.github/workflows/ci-test.yml	Thu Sep 01 10:52:42 2022 -0400
@@ -20,16 +20,18 @@
 
     strategy:
       fail-fast: false
+      max-parallel: 3
       matrix:
-        # number of parallel jobs
-        ci_node_total: [3]
-        ci_node_index: [0,1,2]
-
         # Run in all these versions of Python
-        python-version: [ "2.7", "3.10", "3.11.0-rc.1" ]
+        python-version: [ "2.7", "3.10", "3.11.0-rc.1", "3.12" ]
         #python-version: [ "2.7", "3.10", "3.9", "3.8", "3.6" ]
     # use for multiple os or ubuntu versions
     #    os: [ubuntu-latest, macos-latest, windows-latest]
+        experimental: [false]
+        include:
+           # example: if 3.12 fails the jobs still succeeds
+           - python-version: 3.12
+             experimental: true
 
     env:
       # get colorized pytest output even without a controlling tty
@@ -67,7 +69,7 @@
           sudo service mysql restart; sleep 30
           ps -ef | grep mysqld
           sudo netstat -anp | grep mysqld
-          sudo mysql -u root -proot -e 'GRANT ALL ON rounduptest.* TO rounduptest@localhost IDENTIFIED BY "rounduptest";'
+          sudo mysql -u root -proot -e 'CREATE USER "rounduptest"@"localhost" IDENTIFIED WITH mysql_native_password BY "rounduptest"; GRANT ALL on rounduptest.* TO "rounduptest"@"localhost";'
 
       - name: Install postgres
         run: |

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