fix(vanna)

closes #6359
This commit is contained in:
Jacob Heider 2024-06-07 12:04:44 -04:00 committed by Jacob Heider
parent fa0bf47f52
commit a9c4623960

View file

@ -35,8 +35,15 @@ build:
if: '>=0.3' if: '>=0.3'
# additional requirements as of 0.4.0 # additional requirements as of 0.4.0
- run: python -m pip install google-generativeai --prefix={{prefix}} - run: python -m pip install google-generativeai --prefix={{prefix}}
if: '>=0.4'
# additional requirements as of 0.4.1 # additional requirements as of 0.4.1
- run: python -m pip install qdrant-client fastembed --prefix={{prefix}} - run: python -m pip install qdrant-client fastembed --prefix={{prefix}}
if: '>=0.4.1'
# protobuf ^5.27 (transient dep) currently not playing nicely with other components
- run: |
rm -rf ${{prefix}}/lib/python{{deps.python.org.version.marketing}}/site-packages/proto
python -m pip install proto-plus==1.24.0.dev1 --prefix={{prefix}}
if: 0.6.0
- run: ln -s python{{deps.python.org.version.marketing}} python{{deps.python.org.version.major}} - run: ln -s python{{deps.python.org.version.marketing}} python{{deps.python.org.version.major}}
working-directory: ${{prefix}}/lib working-directory: ${{prefix}}/lib
@ -59,5 +66,5 @@ test:
SNOWFLAKE_PASSWORD: FAKE_PASSWORD SNOWFLAKE_PASSWORD: FAKE_PASSWORD
GEMINI_API_KEY: FAKE_API_KEY GEMINI_API_KEY: FAKE_API_KEY
script: script:
- curl -L "https://raw.githubusercontent.com/vanna-ai/vanna/main/tests/test_vanna.py" -o test_vanna.py - curl -L "https://raw.githubusercontent.com/vanna-ai/vanna/{{ version.tag }}/tests/test_vanna.py" -o test_vanna.py
- python test_vanna.py - python test_vanna.py