-
Notifications
You must be signed in to change notification settings - Fork 9
40 lines (37 loc) · 984 Bytes
/
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
name: Run tests
on:
pull_request:
push:
branches: [ main ]
tags: [ 'v*.*.*' ]
permissions:
contents: read
jobs:
test:
name: Test
strategy:
matrix:
os: [macos-latest, ubuntu-latest]
source: ["general", "spark", "gateway-over-duckdb", "gateway-over-datafusion"]
python: ["3.10"]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
submodules: recursive
- name: Install packages and test dependencies
uses: conda-incubator/setup-miniconda@v3
with:
activate-environment: spark-substrait-gateway-env
environment-file: environment.yml
python-version: ${{ matrix.python }}
auto-activate-base: false
- name: Build
shell: bash -el {0}
run: |
pip install -e .
- name: Run tests
shell: bash -el {0}
run: |
pytest -m ${{ matrix.source }}