forked from LMCache/LMCache
-
Notifications
You must be signed in to change notification settings - Fork 0
87 lines (75 loc) · 2.18 KB
/
Copy pathtest.yml
File metadata and controls
87 lines (75 loc) · 2.18 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
name: Test
on:
workflow_call:
workflow_dispatch:
push:
branches:
- "dev"
- "release-**"
paths:
- '**.py'
- 'pyproject.toml'
- 'requirements/**.txt'
- '.github/workflows/test.yml' # This workflow
pull_request:
branches:
- "dev"
- "release-**"
paths:
- '**.py'
- 'pyproject.toml'
- 'requirements/**.txt'
- '.github/workflows/test.yml' # This workflow
env:
LC_ALL: en_US.UTF-8
PYTHONHASHSEED: 0
defaults:
run:
shell: bash
permissions:
contents: read
jobs:
test:
name: "test: ${{ matrix.python }} on ${{ matrix.platform }}"
runs-on: "${{ matrix.platform }}"
strategy:
matrix:
python:
- "3.10"
- "3.11"
- "3.12"
- "3.13"
platform:
- "ubuntu-latest"
steps:
- name: "Harden Runner"
uses: step-security/harden-runner@20cf305ff2072d973412fa9b1e3a4f227bda3c76 # v2.14.0
with:
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs
- name: Checkout
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
with:
# https://github.com/actions/checkout/issues/249
fetch-depth: 0
- name: Free disk space
uses: ./.github/actions/free-disk-space
- name: Setup Python ${{ matrix.python }}
uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0
with:
python-version: ${{ matrix.python }}
cache: pip
cache-dependency-path: |
**/pyproject.toml
**/requirements/*.txt
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install vllm
python -m pip install -r requirements/test.txt
python -m pip install -r requirements/common.txt
- name: "Run non-CUDA unit tests"
run: |
pytest --ignore=tests/disagg --ignore=tests/v1/test_nixl_storage.py \
--ignore=tests/v1/multiprocess/test_cache_server.py \
--ignore=tests/skipped \
--ignore=tests/v1/storage_backend/test_eic.py