From b081214d3aeea1c39c029e3b7c5efe6c54098445 Mon Sep 17 00:00:00 2001 From: Janick Reynders Date: Mon, 22 Jul 2024 21:57:29 +0200 Subject: [PATCH] initial test workflow --- .github/workflows/test.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 9fad033..44f3a67 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -46,7 +46,7 @@ jobs: - name: Compile proto files run: | mkdir build - protoc --proto_path=proto --python_out=build ./proto/* + protoc --proto_path=proto --python_out=build --myprotosql_out=build ./proto/* # - name: Create test_db and user # run: | # mysql -e "CREATE DATABASE IF NOT EXISTS test_db;" -u root -p root @@ -54,8 +54,8 @@ jobs: # mysql -e "GRANT CREATE, ALTER, DROP, INSERT, UPDATE, DELETE, SELECT, REFERENCES, RELOAD on *.* TO 'test_db'@'localhost' WITH GRANT OPTION;" -u root -p root - name: Create the myprotosql stored procedures run: | - mysql -h hostname -u root -p root test_db < ./myproto.sql - mysql -h hostname -u root -p root test_db < ./build/myproto_descriptors.sql + mysql -h 127.0.0.1 -u root -p root test_db < ./myproto.sql + mysql -h 127.0.0.1 -u root -p root test_db < ./build/myproto_descriptors.sql - name: Test with pytest run: | cd tests