File tree 1 file changed +24
-3
lines changed
1 file changed +24
-3
lines changed Original file line number Diff line number Diff line change 4
4
paths :
5
5
- ' .github/workflows/**'
6
6
- ' mlflow/**'
7
+
7
8
jobs :
8
- build :
9
+ build-and-test :
9
10
runs-on : ubuntu-latest
10
11
steps :
11
- - uses : actions/checkout@v4
12
+ - name : Checkout code
13
+ uses : actions/checkout@v4
14
+
12
15
- name : Use Node.js
13
16
uses : actions/setup-node@v4
14
17
with :
15
18
node-version : ' 22.7'
16
- - name : Install
19
+
20
+ - name : Install dependencies
17
21
working-directory : ./mlflow
18
22
run : npm ci
23
+
19
24
- name : Eslint
20
25
working-directory : ./mlflow
21
26
run : npm run lint
27
+
22
28
- name : Build
23
29
working-directory : ./mlflow
24
30
run : npm run build
31
+
32
+ - name : Set up Docker Buildx
33
+ uses : docker/setup-buildx-action@v3
34
+
35
+ - name : Run MLflow server
36
+ run : |
37
+ docker run -d -p 5001:5002 --name mlflow-container ghcr.io/mlflow/mlflow:latest mlflow server --host 0.0.0.0 --port 5002
38
+ sleep 10
39
+
40
+ - name : Run tests
41
+ working-directory : ./mlflow
42
+ run : npm run test
43
+
44
+ - name : Stop MLflow server
45
+ run : docker stop mlflow-container
You can’t perform that action at this time.
0 commit comments