-
Notifications
You must be signed in to change notification settings - Fork 26
42 lines (40 loc) · 1.11 KB
/
unittest.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
on:
push:
pull_request:
jobs:
changes:
runs-on: ubuntu-latest
outputs:
src: ${{ steps.changes.outputs.src }}
steps:
- uses: actions/checkout@v4
- uses: dorny/paths-filter@v2
id: changes
with:
filters: |
src:
- 'dockerfiles/requirements.txt'
- 'dockerfiles/Dockerfile.base'
- '.github/workflows/unittest.yaml'
run-test-cases:
runs-on: ubuntu-latest
needs: changes
steps:
- uses: actions/checkout@v4
- name: Set up Docker
uses: docker/setup-buildx-action@v3
- name: Build test with base image
if: ${{ needs.changes.outputs.src == 'false' }}
run: make build-test
- name: Build test without base image
if: ${{ needs.changes.outputs.src == 'true' }}
run: make build-test-nobase
- name: Test model server
run: make test-model-server
- name: Test estimator
run: make test-estimator
timeout-minutes: 5
- name: Test pipeline
run: make test-pipeline
- name: Test offline trainer
run: make test-offline-trainer