mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-05-20 09:12:08 +00:00
44 lines
1.3 KiB
YAML
44 lines
1.3 KiB
YAML
name: "Nix Integration Tests"
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- ".github/workflows/nix_integration_tests.yaml"
|
|
- "server/**"
|
|
- "proto/**"
|
|
- "router/**"
|
|
- "launcher/**"
|
|
- "Cargo.lock"
|
|
- "rust-toolchain.toml"
|
|
- "flake.nix"
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
tests:
|
|
runs-on:
|
|
group: aws-g6-12xlarge-plus-priv
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: cachix/install-nix-action@v27
|
|
- uses: cachix/cachix-action@v14
|
|
with:
|
|
name: text-generation-inference
|
|
# If you chose signing key for write access
|
|
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
|
|
env:
|
|
USER: github_runner
|
|
- name: Build
|
|
run: nix develop .#test --command echo "Ok"
|
|
- name: Setup tmate session
|
|
uses: mxschmitt/action-tmate@v3
|
|
- name: Python tests.
|
|
run: |
|
|
sudo mkdir -p /run/opengl-driver/lib/
|
|
export NVIDIA=/usr/lib/
|
|
sudo find $NVIDIA . -name 'libcuda.so*' -exec ln -s {} /run/opengl-driver/lib/ \;
|
|
sudo find $NVIDIA . -name 'libnvidia-ml.so*' -exec ln -s {} /run/opengl-driver/lib/ \;
|
|
nix develop .#test --command pytest -svvx integration-tests/ --release
|
|
env:
|
|
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|