-
Notifications
You must be signed in to change notification settings - Fork 3
45 lines (36 loc) · 1021 Bytes
/
mlflow-js.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
name: mlflow
on:
push:
paths:
- '.github/workflows/**'
- 'mlflow/**'
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: '22.7'
- name: Install dependencies
working-directory: ./mlflow
run: npm ci
- name: Eslint
working-directory: ./mlflow
run: npm run lint
- name: Build
working-directory: ./mlflow
run: npm run build
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Run MLflow server
run: |
docker run -d -p 5001:5002 --name mlflow-container ghcr.io/mlflow/mlflow:latest mlflow server --host 0.0.0.0 --port 5002
sleep 10
- name: Run tests
working-directory: ./mlflow
run: npm run test
- name: Stop MLflow server
run: docker stop mlflow-container