Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
jiashenC committed Aug 31, 2023
1 parent 8aa807b commit 1ff7f2d
Showing 1 changed file with 63 additions and 0 deletions.
63 changes: 63 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,12 @@ workflows:
- master
- staging
################################
### THIRD PARTY: Staging, Master
################################
################################
- MySQL:
name: Third Party Test - MySQL | v3.10 | Linux
################################
### NOTEBOOKS: Staging, Master
################################
################################
Expand Down Expand Up @@ -274,6 +280,58 @@ jobs:
- test_evadb_doc
- node_modules

MySQL:
parameters:
v:
type: string
default: "3.10"
resource_class: large
docker:
- image: "cimg/python:<< parameters.v >>"
- image: "cimg/mysql:8.0"
environment:
MYSQL_USER: eva
MYSQL_PASSWORD: password
MYSQL_DATABASE: evadb

steps:

- checkout

# Restore pip wheel
- restore_cache:
keys:
- v1-pip-wheel_cache-python<< parameters.v >>-rayDISABLED-{{ checksum "setup.py" }}

- restore_cache:
keys:
- v1-model_cache-{{ checksum "setup.py" }}

- run:
name: Install dockerize
command: wget https://github.com/jwilder/dockerize/releases/download/$DOCKERIZE_VERSION/dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz && sudo tar -C /usr/local/bin -xzvf dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz && rm dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz
environment:
DOCKERIZE_VERSION: v0.6.1

- run:
name: Wait for DB to run
command : dockerize -wait tcp://localhost:3306 -timeout 1m

- run:
name: Install EvaDB package from GitHub repo with all dependencies
command: |
"python<< parameters.v >>" -m venv test_evadb
pip install --upgrade pip
source test_evadb/bin/activate
pip install ".[dev]"
pip install -r evadb/third_party/databases/mysql/requirements.txt
- run:
name: Run integration tests
command: |
source test_evadb/bin/activate
PYTHONPATH="." python -m pytest test/third_party_tests/test_native_executor.py -k test_should_run_query_in_mysql
Postgres:
parameters:
v:
Expand All @@ -292,6 +350,11 @@ jobs:

- checkout

# Restore pip wheel
- restore_cache:
keys:
- v1-pip-wheel_cache-python<< parameters.v >>-rayDISABLED-{{ checksum "setup.py" }}

- restore_cache:
keys:
- v1-model_cache-{{ checksum "setup.py" }}
Expand Down

0 comments on commit 1ff7f2d

Please sign in to comment.