-
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.
👷 Add integration test to the CI (#140)
* feat(ci): adding integration test to ci * fix(ci): fix flaky docker build behavior in ci * refactor: rename V5_LITEPOD_8_ENV to TPU_ENV
- Loading branch information
1 parent
20772b8
commit 9c791e0
Showing
5 changed files
with
95 additions
and
5 deletions.
There are no files selected for viewing
42 changes: 42 additions & 0 deletions
42
.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,42 @@ | ||
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 }} | ||
TPU_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 | ||
# To build the docker image in the ci, we need to use the network host option | ||
- name: Build TGI Docker Image | ||
run: | | ||
make tpu-tgi NETWORK=host | ||
- 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