forked from vllm-project/aibrix
-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (46 loc) · 1.29 KB
/
Copy pathpython-aibrix-tests.yml
File metadata and controls
47 lines (46 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
name: Python AIBrix Tests
on:
push:
branches: [ "main", "release-*" ]
paths:
- 'python/aibrix/**'
- '.github/workflows/python-aibrix-tests.yml'
pull_request:
branches: [ "main" ]
paths:
- 'python/aibrix/**'
- '.github/workflows/python-aibrix-tests.yml'
jobs:
lint:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12"]
name: Python AIBrix Tests (${{ matrix.python-version }})
steps:
- name: Check out source repository
uses: actions/checkout@v6
- name: Set up Python environment ${{ matrix.python-version }}
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
cd python/aibrix
python -m pip install --upgrade pip
pip install -U pip poetry
poetry config virtualenvs.create false
poetry install --no-root --with dev
- name: Run Ruff
run: |
cd python/aibrix
python -m ruff check .
python -m ruff format --check .
- name: Run mypy
run: |
cd python/aibrix
python -m mypy .
- name: Run Test
run: |
cd python/aibrix/tests
python -m pytest .