-
Notifications
You must be signed in to change notification settings - Fork 91
57 lines (56 loc) · 1.6 KB
/
local-setup-test.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
48
49
50
51
52
53
54
55
56
57
name: Local Setup Test
on: [push]
jobs:
mac_nix:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: "zulu"
java-version: "11"
- name: Install poetry
run: pipx install poetry
- uses: actions/setup-python@v4
with:
python-version: "3.9"
cache: "poetry"
- name: Install Python Dependencies
run: |
poetry install
- name: Run local unit tests
run: |
./go.sh run-local-unit-test
- name: Run local integration tests
run: |
./go.sh run-local-integration-test
windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: "zulu"
java-version: "11"
- name: Install poetry
run: pipx install poetry
- uses: actions/setup-python@v4
with:
python-version: "3.9"
cache: "poetry"
- name: Install Python Dependencies
run: |
scripts\install.bat
poetry install
- name: Run local unit tests
run: |
.\go.ps1 run-local-unit-test
# This doesn't work at the moment because running spark locally on Windows
# requires a special setup for Hadoop
# TODO: https://cwiki.apache.org/confluence/display/HADOOP2/WindowsProblems
# - name: Run local integration tests
# run: |
# .\go.ps1 run-local-integration-test