-
Notifications
You must be signed in to change notification settings - Fork 15
58 lines (50 loc) · 1.21 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
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
services:
tidb:
image: wangdi4zm/tind:v8.4.0-vector-index
ports:
- 4000:4000
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