-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (46 loc) · 1.35 KB
/
Copy pathci.yml
File metadata and controls
55 lines (46 loc) · 1.35 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
name: CI
on:
push:
branches: ["main", "master"]
pull_request:
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.11", "3.12", "3.13"]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
cache: pip
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -e .[dev]
- name: Lint
run: ruff check .
- name: Unit tests
run: pytest -q
- name: Smoke run CLI
run: |
python examples/generate_synthetic_data.py --rows 800 --seed 42 --output /tmp/sample_predictions.csv
python -m model_debugger \
--input /tmp/sample_predictions.csv \
--target y_true \
--pred y_pred \
--proba y_proba \
--segments gender,region \
--fairness-groups gender \
--output /tmp/model-debugger-ci-artifacts
- name: Upload smoke artifacts
if: always()
uses: actions/upload-artifact@v4
with:
name: smoke-artifacts-py${{ matrix.python-version }}
path: /tmp/model-debugger-ci-artifacts