Run tests by @samos123 #915
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tests | |
run-name: Run tests by @${{ github.actor }} | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
unit-and-integration: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Run unit tests | |
run: make test-unit | |
- name: Run integration tests | |
run: make test-integration | |
e2e-general: | |
runs-on: ubuntu-latest | |
# NOTE: Uncomment if we start getting limited on number of concurrent jobs | |
# (due to rapid pushes, etc). | |
#needs: unit-and-integration # No use in running e2e tests if integration tests fail. | |
strategy: | |
matrix: | |
testcase: | |
- "quickstart" | |
- "openai-python-client" | |
- "autoscaler-restart" | |
- "cache-shared-filesystem" | |
- "engine-vllm-pvc" | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Install kind | |
run: | | |
curl -Lo ./kind https://kind.sigs.k8s.io/dl/v0.24.0/kind-linux-amd64 | |
chmod +x ./kind | |
sudo mv ./kind /usr/local/bin/kind | |
- name: Install helm | |
run: | | |
curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 | |
chmod 700 get_helm.sh | |
./get_helm.sh | |
- name: Start kind cluster | |
run: kind create cluster | |
- name: Run the e2e testcase | |
run: make test-e2e-${{ matrix.testcase }} | |
e2e-engines: | |
runs-on: ubuntu-latest | |
# NOTE: Uncomment if we start getting limited on number of concurrent jobs | |
# (due to rapid pushes, etc). | |
#needs: unit-and-integration # No use in running e2e tests if integration tests fail. | |
strategy: | |
matrix: | |
engine: ["FasterWhisper"] # "VLLM", "Infinity", "OLlama" | |
# Run each test case with and without caching. | |
cacheProfile: ["", "e2e-test-kind-pv"] | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Install kind | |
run: | | |
curl -Lo ./kind https://kind.sigs.k8s.io/dl/v0.24.0/kind-linux-amd64 | |
chmod +x ./kind | |
sudo mv ./kind /usr/local/bin/kind | |
- name: Install helm | |
run: | | |
curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 | |
chmod 700 get_helm.sh | |
./get_helm.sh | |
- name: Start kind cluster | |
run: kind create cluster | |
- name: Run the e2e testcase | |
run: make test-e2e-engine ENGINE=${{ matrix.engine }} CACHE_PROFILE=${{ matrix.cacheProfile }} |