-
Notifications
You must be signed in to change notification settings - Fork 2
41 lines (34 loc) · 1.57 KB
/
build.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
name: Test
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
# The first step is obviously to check out the repository
- name: Checkout repo
uses: actions/checkout@v3
# The next step is to install a JDK and maven environment
# A settings.xml file with credentials will be created and stored in that folder
# See next step for settings.xml creation
- name: Cache local Maven repository
uses: actions/cache@v2
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-maven-
# Our library works without Tesseract installed but test will fail on purpose
# We ensure tesseract C++ library is available on test environment
- name: Install Tesseract
run: sudo apt-get install -y -q tesseract-ocr
# The next step is to install a JDK and maven environment
# A settings.xml file with credentials will be created and stored in that folder
# Since we're only testing the stack, no need for a specific configuration with Sonatype credentials
- name: Set up Maven
uses: actions/setup-java@v2
with:
distribution: "zulu"
java-version: "11"
# Pyspark test are integration-tests and requires packaging all dependencies first before
# invoking a pyspark context. This logic is included in pom.xml and triggered on mvn verify goal
- name: Run Scala tests and Pyspark compatibility
run: mvn clean verify -ntp -Dgpg.skip