diff --git a/.github/workflows/nix_tests.yaml b/.github/workflows/nix_tests.yaml index 4bdf886c..19b2c705 100644 --- a/.github/workflows/nix_tests.yaml +++ b/.github/workflows/nix_tests.yaml @@ -31,7 +31,11 @@ jobs: USER: github_runner - name: 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/ env: HF_TOKEN: ${{ secrets.HF_TOKEN }} + - name: Rust tests. + run: nix develop .#test --command cargo test diff --git a/flake.nix b/flake.nix index 2f99caaf..7d9d35aa 100644 --- a/flake.nix +++ b/flake.nix @@ -88,6 +88,8 @@ launcher router server + openssl.dev + pkg-config ] ++ (with python3.pkgs; [ docker @@ -95,6 +97,7 @@ pytest-asyncio syrupy ]); + }; impure = mkShell {