-
Notifications
You must be signed in to change notification settings - Fork 36
63 lines (53 loc) · 1.71 KB
/
integration-tests.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
name: "integration tests"
on:
push:
paths-ignore:
- 'docs/**'
- '.github/**'
branches:
- master
- develop
- "release/**"
pull_request:
paths-ignore:
- 'docs/**'
- '.github/**'
branches:
- "**"
jobs:
integration-tests:
strategy:
matrix:
to_test:
- "mnist-keras numpyhelper"
- "mnist-pytorch numpyhelper"
python_version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
os:
- ubuntu-22.04
runs-on: ${{ matrix.os }}
steps:
- name: checkout
uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python_version }}
- name: run ${{ matrix.to_test }}
run: .ci/tests/examples/run.sh ${{ matrix.to_test }}
# - name: run ${{ matrix.to_test }} prediction
# run: .ci/tests/examples/run_prediction.sh ${{ matrix.to_test }}
# if: ${{ matrix.os != 'macos-11' && matrix.to_test == 'mnist-keras keras' }} # example available for Keras
- name: print logs api-server
if: failure()
run: .ci/tests/examples/print_logs.sh api-server ${{ matrix.to_test }}
- name: print logs combiner
if: failure()
run: .ci/tests/examples/print_logs.sh combiner ${{ matrix.to_test }}
- name: print logs client
if: failure()
run: .ci/tests/examples/print_logs.sh client ${{ matrix.to_test }}
- name: print logs mongo
if: failure()
run: .ci/tests/examples/print_logs.sh mongo ${{ matrix.to_test }}
- name: print logs minio
if: failure()
run: .ci/tests/examples/print_logs.sh minio ${{ matrix.to_test }}