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