Attempting rapidly the integration tests.

This commit is contained in:
Nicolas Patry 2024-09-12 14:27:48 +02:00
parent 38fcafcf96
commit f47cdc1fe1
No known key found for this signature in database
GPG Key ID: 64AF4752B2967863
2 changed files with 40 additions and 3 deletions

View File

@ -0,0 +1,37 @@
name: "Nix Integration Tests"
on:
pull_request:
paths:
- ".github/workflows/nix_integration_tests.yaml"
- "server/**"
- "proto/**"
- "router/**"
- "launcher/**"
- "Cargo.lock"
- "rust-toolchain.toml"
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
tests:
runs-on:
group: aws-highmemory-32-plus-priv
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v27
with:
nix_path: nixpkgs=channel:nixos-unstable
- 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: Python tests.
run: nix develop .#test --command python -m pytest integration-tests/
env:
HF_TOKEN: ${{ secrets.HF_TOKEN }}

View File

@ -84,9 +84,9 @@
test = mkShell {
buildInputs =
[
# benchmark
# launcher
# router
benchmark
launcher
router
server
openssl.dev
pkg-config