fix workflow #52
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: Optimum TPU / Test TGI on TPU / Integration Tests | |
on: | |
push: | |
pull_request: | |
branches: [ main ] | |
paths: | |
- "text-generation-inference/**" | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
cancel-in-progress: true | |
jobs: | |
integration-tests: | |
name: Run TGI Integration Tests | |
runs-on: | |
group: gcp-ct5lp-hightpu-8t | |
env: | |
PJRT_DEVICE: TPU | |
HF_HUB_CACHE: /mnt/hf_cache/cache_huggingface | |
HF_TOKEN: ${{ secrets.HF_TOKEN_OPTIMUM_TPU_CI }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: | | |
sudo apt-get update -y | |
sudo apt-get install -y python3 python3-pip python-is-python3 | |
- name: Install dependencies + Build TGI server | |
run: | | |
make tgi_docker_integration_test_installs | |
- name: Run integration tests | |
run: | | |
make tgi_docker_integration_test |