forked from vllm-project/aibrix
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpython-aibrix-kvcache-tests.yml
More file actions
47 lines (46 loc) · 1.29 KB
/
python-aibrix-kvcache-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 KVCache Tests
on:
push:
branches: [ "main", "release-*" ]
paths:
- 'python/aibrix_kvcache/**'
pull_request:
branches: [ "main" ]
paths:
- 'python/aibrix_kvcache/**'
jobs:
lint:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11", "3.12"]
name: Lint
steps:
- name: Free Disk Space
uses: jlumbroso/free-disk-space@main
with:
tool-cache: false
- name: Check out source repository
uses: actions/checkout@v4
- name: Set up Python environment ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
cd python/aibrix_kvcache
python -m pip install --upgrade pip
pip install -U pip pre-commit
pip install -r requirements/build.txt -r requirements/dev.txt -r requirements/core.txt
- name: Run Pre-Commit
run: |
cd python/aibrix_kvcache
pre-commit run --all-files
- name: Build and Install
run: |
cd python/aibrix_kvcache
pip install . -v
- name: Run Test
run: |
cd python/aibrix_kvcache/tests
python -m pytest .