-
Notifications
You must be signed in to change notification settings - Fork 7
86 lines (72 loc) · 2.23 KB
/
test.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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
name: Test
on:
pull_request:
push:
branches:
- main
jobs:
consumers:
name: Run consumer tests
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
consumer: [datafusion, duckdb]
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
cache: 'pip'
- name: Install Python dependencies
run: pip install -r requirements.txt
- name: Run tests for ${{ matrix.consumer }} consumer
run: pytest -v -m consume_substrait_snapshot --consumer=${{ matrix.consumer }} substrait_consumer/
producers:
name: Run producer tests
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
producer: [datafusion, duckdb, ibis, isthmus]
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: recursive
- name: Install Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
cache: 'pip'
- name: Install Python dependencies
run: pip install -r requirements.txt
- name: Install Java
uses: actions/setup-java@v4
if: ${{ matrix.producer == 'isthmus' }}
with:
distribution: 'temurin'
java-version: '17'
- name: Setup Gradle
if: ${{ matrix.producer == 'isthmus' }}
uses: gradle/actions/setup-gradle@v4
with:
gradle-version: 8.8
- name: Build Isthmus
if: ${{ matrix.producer == 'isthmus' }}
working-directory: ./substrait-java/isthmus
run: ../gradlew shadowJar
- name: Copy Isthmus JARs
if: ${{ matrix.producer == 'isthmus' }}
run: |-
mkdir ./jars
cp substrait-java/isthmus/build/libs/*all.jar ./jars
- name: Run tests for ${{ matrix.producer }} producer
run: pytest -v -m produce_substrait_snapshot --producer=${{ matrix.producer }} substrait_consumer/
- name: Run Ibis expression tests
if: ${{ matrix.producer == 'ibis' }}
run: pytest -v substrait_consumer/ibis_expressions/
- name: Run adhoc tests
run: pytest -v substrait_consumer/adhoc --adhoc_producer=${{ matrix.producer }} --consumer=duckdb