Skip to content

Commit

Permalink
initial test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
janickr committed Jul 22, 2024
1 parent 22854f9 commit b081214
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,16 +46,16 @@ 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
# mysql -e "CREATE USER 'test_db'@'localhost' IDENTIFIED BY 'test_db';" -u root -p root
# 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
Expand Down

0 comments on commit b081214

Please sign in to comment.