Skip to content

Nightly Build and Test #196

Nightly Build and Test

Nightly Build and Test #196

name: Nightly Build and Test
on:
schedule:
- cron: "0 0 * * *" # Runs at midnight every day
jobs:
build-and-test:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.11
- name: Get latest vllm tag
id: latest-vllm-tag
run: |
git fetch https://github.com/vllm-project/vllm.git --tags
LATEST_TAG=$(git describe --tags $(git rev-list --tags --max-count=1))
echo "LATEST_TAG=${LATEST_TAG:1}" >> $GITHUB_OUTPUT
- name: Update vllm version to latest
id: update-vllm-version
env:
VLLM_TAG: ${{ steps.latest-vllm-tag.outputs.LATEST_TAG }}
run: |
python -m pip install --upgrade pip
pip install tomli-w
python scripts/update_vllm_version.py --vllm_version $VLLM_TAG
- name: Install dependencies
if: steps.update-vllm-version.outputs.SKIP_VERSION != 'true'
run: |
python -m pip install --upgrade pip
python -m pip install -r setup_requirements.txt
- name: Build and test with tox
if: steps.update-vllm-version.outputs.SKIP_VERSION != 'true'
run: tox -e py