-
-
Notifications
You must be signed in to change notification settings - Fork 54
55 lines (49 loc) · 1.29 KB
/
tests.yml
File metadata and controls
55 lines (49 loc) · 1.29 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: Tests
on:
push:
branches: [main]
paths:
- 'python/**'
- 'R/R/**'
- 'R/tests/**'
- '.github/workflows/tests.yml'
pull_request:
branches: [main]
paths:
- 'python/**'
- 'R/R/**'
- 'R/tests/**'
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: '3.11'
cache: 'pip'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install pytest pytest-cov ruff
cd python
pip install -e .[dev]
- name: Lint
run: |
cd python
ruff check mllmcelltype tests
- name: Test
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}
DEEPSEEK_API_KEY: ${{ secrets.DEEPSEEK_API_KEY }}
QWEN_API_KEY: ${{ secrets.QWEN_API_KEY }}
STEPFUN_API_KEY: ${{ secrets.STEPFUN_API_KEY }}
ZHIPU_API_KEY: ${{ secrets.ZHIPU_API_KEY }}
MINIMAX_API_KEY: ${{ secrets.MINIMAX_API_KEY }}
run: |
cd python
pytest --cov=mllmcelltype tests/