Skip to content

example: add dspy demo build with tidb vector. #139

example: add dspy demo build with tidb vector.

example: add dspy demo build with tidb vector. #139

Workflow file for this run

on:
pull_request:
push:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
lint:
name: lint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install tox
- name: Run lint
run: |
tox -e lint
tests:
strategy:
fail-fast: false
matrix:
python-version:
- '3.12'
name: py${{ matrix.python-version }}_test
runs-on: ubuntu-latest
env:
TEST_TIDB_HOST: ${{ secrets.TEST_TIDB_HOST }}
TEST_TIDB_USER: ${{ secrets.TEST_TIDB_USER }}
TEST_TIDB_PASSWORD: ${{ secrets.TEST_TIDB_PASSWORD }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install tox tox-gh-actions
sudo apt-get update
sudo apt-get install -y libmemcached-dev zlib1g-dev
- name: Run tests
run: tox