Skip to content

Commit 96fd0c7

Browse files
committed
mysql verbose and remove -u
1 parent 0f48c40 commit 96fd0c7

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/ci-test.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
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
@@ -83,7 +84,7 @@ jobs:
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" \

0 commit comments

Comments
 (0)