forked from sustainable-computing-io/kepler-model-server
-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (38 loc) · 1.09 KB
/
unit-test.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
name: Unit Test
on:
workflow_call:
secrets:
docker_username:
description: 'Docker username'
required: false
docker_password:
description: 'Docker password'
required: false
inputs:
base_change:
description: 'Change flag on base image'
required: true
type: string
jobs:
unit-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Docker
uses: docker/setup-buildx-action@v3
- name: Build test with base image
if: ${{ inputs.base_change != 'true' }}
run: make build-test
- name: Build test without base image
if: ${{ inputs.base_change == 'true' }}
run: make build-test-nobase
- name: Test pipeline # need to run first to build the models
run: make test-pipeline
- name: Test model server
run: make test-model-server
timeout-minutes: 5
- name: Test estimator
run: make test-estimator
timeout-minutes: 5
- name: Test offline trainer
run: make test-offline-trainer