File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 4444
4545 # Display the Python version being used
4646 - name : Display Python version
47- run : python -c "import sys; print(sys.version)"; echo $PYTHON_VERSION
47+ run : python -c "import sys; print(sys.version)"
4848
4949 # Install the databases
5050 - name : Install postgres
@@ -58,12 +58,13 @@ jobs:
5858
5959 - name : Install mysql/mariadb
6060 run : |
61+ sh -xv
6162 sudo apt-get install mysql-server mysql-client
6263 # set up mysql database
6364 sudo sed -i -e '/^\[mysqld\]/,/^\[mysql/s/^max_allowed_packet.*/max_allowed_packet = 500M/' /etc/mysql/my.cnf
6465 cat /etc/mysql/my.cnf
6566 sudo service mysql restart
66- sudo mysql -u root - e 'GRANT ALL ON rounduptest.* TO rounduptest@localhost IDENTIFIED BY "rounduptest";'
67+ sudo mysql -e 'GRANT ALL ON rounduptest.* TO rounduptest@localhost IDENTIFIED BY "rounduptest";'
6768
6869 - name : Update pip
6970 run : python -m pip install --upgrade pip
8384 run : |
8485 set -xv
8586 pip install zstd || true
86- if [[ $(python -c 'import sys; print("%d.%d.%d"%(sys.version_info.major, sys.version_info.minor, sys.version_info.micro))') != "2."* ]]; then
87+ if [[ "$PYTHON_VERSION" != "2."* ]]; then
8788 pip install Markdown; fi
8889
8990 - name : Install pytest and other packages needed for running tests
@@ -107,7 +108,7 @@ jobs:
107108 # Run the tests using pytest with test files in tests directory.
108109 - name : Run tests
109110 run : |
110- if [[ $(python -c 'import sys; print("%d.%d.%d"%(sys.version_info.major, sys.version_info.minor, sys.version_info.micro))') != "2."* ]]; then
111+ if [[ "$PYTHON_VERSION" != "2."* ]]; then
111112 pytest -r a \
112113 -W default \
113114 -W "ignore:SelectableGroups:DeprecationWarning" \
You can’t perform that action at this time.
0 commit comments