-
Notifications
You must be signed in to change notification settings - Fork 1
39 lines (37 loc) · 846 Bytes
/
test.yml
File metadata and controls
39 lines (37 loc) · 846 Bytes
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
on:
pull_request:
push:
branches:
- main
env:
TIDB_HOST: '127.0.0.1'
TIDB_PORT: '4000'
TIDB_USER: 'root'
TIDB_PASSWORD: ''
TIDB_DB_NAME: 'test'
CA_PATH: ''
jobs:
test:
runs-on: ubuntu-latest
services:
tidb:
image: wangdi4zm/tind:v7.1.0-standalone
ports:
- 4000:4000
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: 3.11
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -r requirements.txt
- name: Wait for tidb to start
run: sleep 20
- name: Run tests
run: |
python sqlalchemy_example.py > temp
diff temp Expected-Output.txt