Adding the other tests.

This commit is contained in:
Nicolas Patry 2024-09-12 13:31:48 +02:00
parent 533d9991e4
commit 0621dfce80
No known key found for this signature in database
GPG Key ID: 64AF4752B2967863
2 changed files with 8 additions and 1 deletions

View File

@ -31,7 +31,11 @@ jobs:
USER: github_runner USER: github_runner
- name: Build - name: Build
run: nix build run: nix build
- name: Run tests. - name: Pre-commit tests.
run: nix develop .#test --command pre-commit run --all-files
- name: Python tests.
run: nix develop .#test --command python -m pytest server/tests/ run: nix develop .#test --command python -m pytest server/tests/
env: env:
HF_TOKEN: ${{ secrets.HF_TOKEN }} HF_TOKEN: ${{ secrets.HF_TOKEN }}
- name: Rust tests.
run: nix develop .#test --command cargo test

View File

@ -88,6 +88,8 @@
launcher launcher
router router
server server
openssl.dev
pkg-config
] ]
++ (with python3.pkgs; [ ++ (with python3.pkgs; [
docker docker
@ -95,6 +97,7 @@
pytest-asyncio pytest-asyncio
syrupy syrupy
]); ]);
}; };
impure = mkShell { impure = mkShell {