-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (52 loc) · 1.65 KB
/
Copy pathci.yml
File metadata and controls
54 lines (52 loc) · 1.65 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
name: CI
on:
push:
branches: [main, develop]
pull_request:
branches: [main, develop]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11", "3.12"]
steps:
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
cache: pip
- name: Install
run: python -m pip install --upgrade "pip>=26" && pip install -e ".[dev]"
- name: Ruff
run: ruff check src tests
- name: Mypy
run: mypy src/quorabust
- name: Pytest
run: pytest -q --cov=quorabust --cov-report=term-missing --cov-fail-under=70
- name: CLI
run: quorabust-train --help
- name: Serve CLI
run: quorabust-serve --help
- name: Report CLI
run: quorabust-report --help
- name: Smoke model report
run: |
quorabust-train \
--csv examples/smoke_pairs.csv \
--out /tmp/quorabust-smoke.pkl \
--eval-fraction 0 \
--seed 7
quorabust-report \
--model /tmp/quorabust-smoke.pkl \
--artifact-label quorabust-smoke.pkl \
--eval-csv examples/smoke_pairs.csv \
--out /tmp/quorabust-smoke-model-card.md
quorabust-report \
--model /tmp/quorabust-smoke.pkl \
--artifact-label quorabust-smoke.pkl \
--eval-csv examples/smoke_pairs.csv \
--format json \
--out /tmp/quorabust-smoke-model-card.json
test -s /tmp/quorabust-smoke-model-card.md
test -s /tmp/quorabust-smoke-model-card.json