-
Notifications
You must be signed in to change notification settings - Fork 201
100 lines (100 loc) · 3.02 KB
/
build-and-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
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
name: Build And Test
on:
push:
pull_request:
branches:
- '**'
jobs:
build-and-test:
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
modules:
- dl-on-flink-framework
- dl-on-flink-operator
- dl-on-flink-tensorflow-common
- dl-on-flink-tensorflow
- dl-on-flink-tensorflow-2.x
- dl-on-flink-pytorch
- dl-on-flink-lib
- dl-on-flink-examples
- dl-on-flink-examples/dl-on-flink-examples-pytorch
- dl-on-flink-examples/dl-on-flink-examples-tensorflow
- dl-on-flink-examples/dl-on-flink-examples-tensorflow-2.x
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Set up JDK 8
uses: actions/setup-java@v2
with:
java-version: '8'
distribution: 'adopt'
- name: Set up python 3.7
uses: actions/setup-python@v2
with:
# Semantic version range syntax or exact version of a Python version
python-version: '3.7'
# Optional - x64 or x86 architecture, defaults to x64
architecture: 'x64'
- name: Install Python dependencies
run: |
pip install -U --user wheel
- name: Cache Maven packages
uses: actions/cache@v2
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: build
run: |
mvn -B install -pl ${{ matrix.modules }} -am -DskipTests -Dfast -Pinstall-py-dep
- name: test
env:
TF_ON_FLINK_IP: 127.0.0.1
run: |
mvn -B test -pl ${{ matrix.modules }}
build-and-test-python:
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
modules:
- dl-on-flink-framework
- dl-on-flink-tensorflow
- dl-on-flink-tensorflow-2.x
- dl-on-flink-pytorch
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Set up JDK 8
uses: actions/setup-java@v2
with:
java-version: '8'
distribution: 'adopt'
- name: Set up python 3.7
uses: actions/setup-python@v2
with:
# Semantic version range syntax or exact version of a Python version
python-version: '3.7'
# Optional - x64 or x86 architecture, defaults to x64
architecture: 'x64'
- name: Install Python dependencies
run: |
pip install -U --user wheel
- name: Cache Maven packages
uses: actions/cache@v2
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: build
run: |
mvn -B install -pl ${{ matrix.modules }} -am -DskipTests -Dfast -Pinstall-py-dep
- name: test
run: |
cd ${{ matrix.modules }}/python
pip install -e .
python -m unittest discover -v .