Mercurial > p > roundup > code
comparison .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 |
comparison
equal
deleted
inserted
replaced
| 6876:30656a34e2dd | 6877:ac2b8a8f5727 |
|---|---|
| 18 # use below if running on multiple OS's. | 18 # use below if running on multiple OS's. |
| 19 # runs-on: ${{ matrix.os }} | 19 # runs-on: ${{ matrix.os }} |
| 20 | 20 |
| 21 strategy: | 21 strategy: |
| 22 fail-fast: false | 22 fail-fast: false |
| 23 max-parallel: 3 | |
| 23 matrix: | 24 matrix: |
| 24 # number of parallel jobs | |
| 25 ci_node_total: [3] | |
| 26 ci_node_index: [0,1,2] | |
| 27 | |
| 28 # Run in all these versions of Python | 25 # Run in all these versions of Python |
| 29 python-version: [ "2.7", "3.10", "3.11.0-rc.1" ] | 26 python-version: [ "2.7", "3.10", "3.11.0-rc.1", "3.12" ] |
| 30 #python-version: [ "2.7", "3.10", "3.9", "3.8", "3.6" ] | 27 #python-version: [ "2.7", "3.10", "3.9", "3.8", "3.6" ] |
| 31 # use for multiple os or ubuntu versions | 28 # use for multiple os or ubuntu versions |
| 32 # os: [ubuntu-latest, macos-latest, windows-latest] | 29 # os: [ubuntu-latest, macos-latest, windows-latest] |
| 30 experimental: [false] | |
| 31 include: | |
| 32 # example: if 3.12 fails the jobs still succeeds | |
| 33 - python-version: 3.12 | |
| 34 experimental: true | |
| 33 | 35 |
| 34 env: | 36 env: |
| 35 # get colorized pytest output even without a controlling tty | 37 # get colorized pytest output even without a controlling tty |
| 36 PYTEST_ADDOPTS: "--color=yes" | 38 PYTEST_ADDOPTS: "--color=yes" |
| 37 # OS: ${{ matrix.os }} | 39 # OS: ${{ matrix.os }} |
| 65 ls /etc/mysql/conf.d/ /etc/mysql/mysql.conf.d/ | 67 ls /etc/mysql/conf.d/ /etc/mysql/mysql.conf.d/ |
| 66 sleep 5 | 68 sleep 5 |
| 67 sudo service mysql restart; sleep 30 | 69 sudo service mysql restart; sleep 30 |
| 68 ps -ef | grep mysqld | 70 ps -ef | grep mysqld |
| 69 sudo netstat -anp | grep mysqld | 71 sudo netstat -anp | grep mysqld |
| 70 sudo mysql -u root -proot -e 'GRANT ALL ON rounduptest.* TO rounduptest@localhost IDENTIFIED BY "rounduptest";' | 72 sudo mysql -u root -proot -e 'CREATE USER "rounduptest"@"localhost" IDENTIFIED WITH mysql_native_password BY "rounduptest"; GRANT ALL on rounduptest.* TO "rounduptest"@"localhost";' |
| 71 | 73 |
| 72 - name: Install postgres | 74 - name: Install postgres |
| 73 run: | | 75 run: | |
| 74 sudo apt-get install postgresql | 76 sudo apt-get install postgresql |
| 75 # Disable fsync for speed, don't care about data durability | 77 # Disable fsync for speed, don't care about data durability |
