-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(ci): adding integration test to ci
- Loading branch information
1 parent
20772b8
commit f0e0181
Showing
5 changed files
with
91 additions
and
5 deletions.
There are no files selected for viewing
41 changes: 41 additions & 0 deletions
41
.github/workflows/test-pytorch-xla-tpu-tgi-integration.yml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: Optimum TPU / Test TGI on TPU / Integration Tests | ||
|
||
on: | ||
schedule: | ||
- cron: '0 4 * * *' # run at 4 AM UTC | ||
# This can be used to allow manually triggering nightlies from the web interface | ||
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 }} | ||
V5_LITEPOD_8_ENV: ${{ vars.V5_LITEPOD_8_ENV}} | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install Python | ||
run: | | ||
sudo apt-get update -y | ||
sudo apt-get install -y python3 python3-pip | ||
sudo ln -s /usr/bin/python3 /usr/bin/python | ||
- name: Build TGI Docker Image | ||
run: | | ||
make tpu-tgi | ||
- name: Run integration tests | ||
run: | | ||
make tgi_docker_test |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,3 +16,4 @@ pytest >= 7.4.0 | |
pytest-asyncio >= 0.21.1 | ||
docker >= 6.1.3 | ||
Levenshtein | ||
loguru |
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