-
Notifications
You must be signed in to change notification settings - Fork 129
139 lines (137 loc) · 4.64 KB
/
canary-ubuntu.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
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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
name: Canary-Ubuntu
on:
schedule:
- cron: '0 9 * * *'
workflow_dispatch:
inputs:
repo-id:
description: 'staging repository id to test'
required: false
default: ''
djl-version:
description: 'djl version to test'
required: false
pt-version:
description: 'pytorch version to test'
required: false
default: ''
jobs:
canary-test-ubuntu:
if: github.repository == 'deepjavalibrary/djl-demo'
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-22.04, ubuntu-latest ]
env:
AWS_REGION: us-east-1
DJL_STAGING: ${{github.event.inputs.repo-id}}
DJL_VERSION: ${{github.event.inputs.djl-version}}
PT_VERSION: ${{github.event.inputs.pt-version}}
steps:
- uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
distribution: 'corretto'
java-version: 11
- name: Install libgomp
run: |
sudo apt-get update
sudo apt-get install -y libgomp1
- name: Test BOM dependencies
working-directory: canary
run: |
set -x
if [[ $(./gradlew -b bom.gradle --configuration runtimeClassPath | grep FAILED | wc -l) -gt 0 ]]; then false; fi
- name: Test MXNet
working-directory: canary
run: |
set -x
DJL_ENGINE=mxnet-native-auto ./gradlew clean run
rm -rf $HOME/.djl.ai/
DJL_ENGINE=mxnet-native-mkl ./gradlew clean run
rm -rf $HOME/.djl.ai/
- name: Test PyTorch
working-directory: canary
run: |
set -x
DJL_ENGINE=pytorch-native-auto PYTORCH_VERSION=$PT_VERSION ./gradlew clean run
rm -rf $HOME/.djl.ai/
DJL_ENGINE=pytorch-native-auto PYTORCH_VERSION=1.11.0 ./gradlew clean run
rm -rf $HOME/.djl.ai/
DJL_ENGINE=pytorch-native-auto PYTORCH_VERSION=1.12.1 ./gradlew clean run
rm -rf $HOME/.djl.ai/
DJL_ENGINE=pytorch-native-auto PYTORCH_VERSION=1.13.1 ./gradlew clean run
rm -rf $HOME/.djl.ai/
DJL_ENGINE=pytorch-native-auto PYTORCH_VERSION=2.0.1 ./gradlew clean run
rm -rf $HOME/.djl.ai/
DJL_ENGINE=pytorch-native-cpu ./gradlew clean run
rm -rf $HOME/.djl.ai/
DJL_ENGINE=pytorch-native-cpu PT_VERSION=1.11.0 ./gradlew clean run
rm -rf $HOME/.djl.ai/
DJL_ENGINE=pytorch-native-cpu PT_VERSION=1.12.1 ./gradlew clean run
rm -rf $HOME/.djl.ai/
DJL_ENGINE=pytorch-native-cpu PT_VERSION=1.13.1 ./gradlew clean run
rm -rf $HOME/.djl.ai/
DJL_ENGINE=pytorch-native-cpu PT_VERSION=2.0.1 ./gradlew clean run
rm -rf $HOME/.djl.ai/
- name: Test TensorFlow
working-directory: canary
run: |
set -x
DJL_ENGINE=tensorflow-native-auto ./gradlew clean run
rm -rf $HOME/.djl.ai/
DJL_ENGINE=tensorflow-native-cpu ./gradlew clean run
rm -rf $HOME/.djl.ai/
- name: Test fastText
working-directory: canary
run: |
set -x
DJL_ENGINE=fasttext ./gradlew clean run
rm -rf $HOME/.djl.ai/
- name: Test OnnxRuntime
working-directory: canary
run: |
set -x
DJL_ENGINE=onnxruntime ./gradlew clean run
rm -rf $HOME/.djl.ai/
- name: Test TFLite
working-directory: canary
run: |
set -x
DJL_ENGINE=tflite-native-auto ./gradlew clean run
rm -rf $HOME/.djl.ai/
DJL_ENGINE=tflite-native-cpu ./gradlew clean run
rm -rf $HOME/.djl.ai/
- name: Test PaddlePaddle
working-directory: canary
run: |
set -x
DJL_ENGINE=paddlepaddle-native-auto ./gradlew clean run
rm -rf $HOME/.djl.ai/
DJL_ENGINE=paddlepaddle-native-cpu ./gradlew clean run
rm -rf $HOME/.djl.ai/
- name: Test Xgboost
working-directory: canary
run: |
set -x
DJL_ENGINE=xgboost ./gradlew clean run
rm -rf $HOME/.djl.ai/
- name: Test LightGBM
working-directory: canary
run: |
set -x
DJL_ENGINE=lightgbm ./gradlew clean run
rm -rf $HOME/.djl.ai/
- name: Test Huggingface tokenizers
working-directory: canary
run: |
set -x
DJL_ENGINE=tokenizers ./gradlew clean run
rm -rf $HOME/.djl.ai/
- name: Test SentencePiece tokenizers
working-directory: canary
run: |
set -x
DJL_ENGINE=sentencepiece ./gradlew clean run
rm -rf $HOME/.djl.ai/