-
Notifications
You must be signed in to change notification settings - Fork 7
47 lines (41 loc) · 1.01 KB
/
ci.yaml
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
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
services:
databend:
# image: datafuselabs/databend-query
image: datafuselabs/databend
env:
QUERY_DEFAULT_USER: databend
QUERY_DEFAULT_PASSWORD: databend
MINIO_ENABLED: true
ports:
- 8000:8000
- 9000:9000
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Python-3.10
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Pip Install
run: |
make install
- name: Verify Service Running
run: |
cid=$(docker ps -a | grep databend | cut -d' ' -f1)
docker logs ${cid}
curl -v http://localhost:8000/v1/health
- name: Test
env:
TEST_DATABEND_DSN: "http://databend:databend@localhost:8000/default"
run: |
make lint
make ci