-
Notifications
You must be signed in to change notification settings - Fork 0
85 lines (65 loc) · 3.05 KB
/
examples.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
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
name: Examples
on:
pull_request:
types:
- opened
- synchronize
push:
branches:
- main
jobs:
Test-Examples:
strategy:
matrix:
python-version: ["3.10"]
poetry-version: ["1.7.1"]
os: [ubuntu]
runs-on: ${{ matrix.os }}-latest
env:
OPSML_TESTING: 1
LOG_LEVEL: DEBUG
steps:
- uses: actions/checkout@v4
- name: Set up uv
# Install latest uv version using the installer
run: curl -LsSf https://astral.sh/uv/install.sh | sh
- name: Set up Python ${{ matrix.python-version }}
run: uv python install ${{ matrix.python-version }}
- name: Set up Dependencies
run: |
rm -rf /opt/hostedtoolcache/CodeQL
rm -rf /opt/hostedtoolcache/Java_Temurin-Hotspot_jdk
rm -rf /opt/hostedtoolcache/Ruby
rm -rf /opt/hostedtoolcache/go
rm -rf /opt/hostedtoolcache/node
make setup.install
- name: Run Sklearn Basic example
run: uv run python examples/sklearn/basic.py && rm -rf opsml_registries && rm opsml.db
- name: Run Sklearn Basic Polars example
run: uv run python examples/sklearn/basic_polars.py && rm -rf opsml_registries && rm opsml.db
- name: Run Sklearn Pipeline example
run: uv run python examples/sklearn/pipeline.py && rm -rf opsml_registries && rm opsml.db
- name: Run Catboost example
run: uv run python examples/boosters/catboost_example.py && rm -rf opsml_registries && rm opsml.db
- name: Run LightGBM Booster example
run: uv run python examples/boosters/lightgbm_boost.py && rm -rf opsml_registries && rm opsml.db
- name: Run LightGBM Sklearn example
run: uv run python examples/boosters/lightgbm_sklearn.py && rm -rf opsml_registries && rm opsml.db
- name: Run XGBoost Booster example
run: uv run python examples/boosters/xgboost_sklearn.py && rm -rf opsml_registries && rm opsml.db
- name: Run TensorFlow example
run: uv run python examples/torch/torch_example.py && rm -rf opsml_registries && rm opsml.db
- name: Run Torch example
run: uv run python examples/tensorflow/tf_example.py && rm -rf opsml_registries && rm opsml.db
- name: Run Torch Lightning example
run: uv run python examples/torch/torch_lightning_example.py && rm -rf opsml_registries && rm opsml.db
- name: Run HuggingFace example
run: uv run python examples/huggingface/hf_example.py && rm -rf opsml_registries && rm opsml.db
- name: Run Vowpal Wabbit example
run: uv run python examples/vowpal/vowpal_example.py && rm -rf opsml_registries && rm opsml.db
- name: Run Project example
run: uv run python examples/run_tracking/opsml_run_example.py && rm -rf opsml_registries && rm opsml.db
- name: Run Challenger examples
run: |
uv run python examples/challenger/registered_example.py && rm -rf opsml_registries && rm opsml.db
uv run python examples/challenger/unregistered_example.py && rm -rf opsml_registries && rm opsml.db