-
Notifications
You must be signed in to change notification settings - Fork 6
68 lines (55 loc) · 1.97 KB
/
Copy pathtest_cli.yml
File metadata and controls
68 lines (55 loc) · 1.97 KB
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: CLI test
on:
pull_request:
jobs:
cli_test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest ]
python-version: [ '3.10' ]
env:
POSTGRES_DB: mlflow
POSTGRES_USER: msdndfvk
POSTGRES_PASSWORD: adfg3245
AWS_ACCESS_KEY_ID: fdash
AWS_SECRET_ACCESS_KEY: rstjDFH345!
MLFLOW_S3_IGNORE_TLS: true
MLFLOW_TRACKING_URI: http://0.0.0.0:85
MLFLOW_S3_ENDPOINT_URL: http://0.0.0.0:8002
steps:
- uses: actions/checkout@v2
with: # required for GitPython checks https://github.com/actions/checkout/issues/124
fetch-depth: 0
ref: ${{ github.event.pull_request.head.ref }}
- name: Clear runner space
run: |
rm -rf /opt/hostedtoolcache
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install csc-mlops
run: |
python -m pip install --upgrade pip build
python -m build
python -m pip install dist/*.whl
- name: start MLOps server
# --wait blocks until all services are healthy or completed before returning.
# createbuckets depends on minio being healthy, so the mlflow bucket is guaranteed
# to exist before the test runs.
run: |
mkdir -p ~/MLOps_data/mlflow_minio
mkdir -p ~/MLOps_data/mlflow_db
docker compose -f mlflow_server/docker-compose.yml up -d --build --wait
- name: Test run CLI
run: |
cd tests/data
mlops run test_entry.py -c test_config.cfg --ignore_git_check
cd -
- name: Test release CLI
run: |
mlops release tests/mlops/release/data/release_config_local.yml