-
Notifications
You must be signed in to change notification settings - Fork 68
63 lines (61 loc) · 1.56 KB
/
spark.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
name: SQL on Spark
on:
pull_request:
paths:
- 'sql/tests/**'
- 'sql/snsql/**'
- 'sql/pyproject.toml'
- '!sql/tests/setup/postgres/**'
- '!sql/tests/setup/sqlserver/**'
- '!sql/tests/setup/mysql/**'
- '!sql/tests/setup/biqquery/**'
workflow_dispatch:
jobs:
build-linux:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: [3.9]
max-parallel: 5
steps:
- uses: actions/checkout@v2
- name: Set up miniconda
uses: conda-incubator/setup-miniconda@v2
with:
miniconda-version: "latest"
auto-update-conda: true
auto-activate-base: true
python-version: ${{ matrix.python-version }}
- name: Upgrade pip
shell: bash -l {0}
run: |
conda install pip
conda update pip
- name: Install Java
shell: bash -l {0}
run: |
sudo apt-get update
sudo apt-get -yq upgrade
sudo apt-get -yq install openjdk-11-jre-headless
- name: Install dependencies
shell: bash -l {0}
run: |
cd sql
pip install --no-cache-dir -r tests/requirements.txt
pip install --no-cache-dir pyspark
- name: Install smartnoise-sql
shell: bash -l {0}
run: |
cd sql
pip install --no-cache-dir .
export TEST_SPARK=1
export SKIP_PANDAS=1
python tests/check_databases.py
- name: Test SDK
shell: bash -l {0}
run: |
cd sql
export TEST_SPARK=1
export SKIP_PANDAS=1
pytest tests