forked from ibis-project/ibis
-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (52 loc) · 1.44 KB
/
ibis-tpch-queries.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
59
60
61
name: TPC-H
on:
push:
paths-ignore:
- "docs/**"
- "mkdocs.yml"
- "**/*.md"
branches:
- master
- "*.x.x"
pull_request:
paths-ignore:
- "docs/**"
- "mkdocs.yml"
- "**/*.md"
branches:
- master
- "*.x.x"
merge_group:
concurrency:
group: ${{ github.repository }}-${{ github.head_ref || github.sha }}-${{ github.workflow }}
cancel-in-progress: true
jobs:
tpch:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v3
- name: clone tpc-queries
uses: actions/checkout@v3
with:
repository: ibis-project/tpc-queries
path: ./tpc-queries
ref: master
- name: install python
uses: actions/setup-python@v4
id: install_python
with:
python-version: "3.11"
- name: install tpc-queries dependencies
working-directory: tpc-queries
run: |
python -m pip install -r requirements.txt
python -m pip install -U 'duckdb>=0.4' 'duckdb-engine>=0.6'
- name: install ibis
run: python -m pip install ".[sqlite,duckdb]"
- name: generate tpc-h data
working-directory: tpc-queries
run: python -c "import duckdb; duckdb.connect('tpch.ddb').execute('CALL dbgen(sf=0.1)')"
- name: run tpc-h queries
working-directory: tpc-queries
run: ./runtpc -i ibis -i duckdb -d 'tpch.ddb' -b 'duckdb'