Skip to content

Commit 555a2bc

Browse files
committed
gha: warm up uv cache by building vllm in a separate step
1 parent 3c1de67 commit 555a2bc

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

.github/workflows/tests.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,11 @@ jobs:
9898
path: /home/runner/.cache/ccache
9999
key: ${{ runner.os }}
100100

101+
- name: build vllm
102+
run: nox --envdir ~/.nox --reuse-venv=yes -v -s build_vllm-${{ matrix.pyv }}
103+
env:
104+
VLLM_VERSION_OVERRIDE: ${{ matrix.vllm_version }}
105+
101106
- name: Run tests
102107
run: nox --envdir ~/.nox --reuse-venv=yes -v -s tests-${{ matrix.pyv }} -- --cov-report=xml
103108
env:

noxfile.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@
1616
]
1717

1818

19+
@nox.session(python=versions)
20+
def build_vllm(session: nox.Session) -> None:
21+
if vllm_version := os.getenv("VLLM_VERSION_OVERRIDE"):
22+
session.install(vllm_version)
23+
24+
1925
@nox.session(python=versions)
2026
def tests(session: nox.Session) -> None:
2127
if vllm_version := os.getenv("VLLM_VERSION_OVERRIDE"):

0 commit comments

Comments
 (0)