From 10c221ec8b572eb65b9401f9867e08a911a53e01 Mon Sep 17 00:00:00 2001 From: Andreas Zweili Date: Fri, 14 Jul 2023 18:17:21 +0200 Subject: [PATCH] Try to use the db in tests --- .github/workflows/tests.yml | 1 + flake.nix | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index fc6347a..a9b7239 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -13,6 +13,7 @@ jobs: - uses: actions/checkout@v3 - uses: cachix/install-nix-action@v22 - uses: DeterminateSystems/magic-nix-cache-action@main + - uses: HatsuneMiku3939/direnv-action@v1 - name: Test run: | nix flake check -L -j auto diff --git a/flake.nix b/flake.nix index 76e4a5c..2c755ce 100644 --- a/flake.nix +++ b/flake.nix @@ -82,10 +82,10 @@ doCheck = true; name = "test"; src = ./.; - checkInputs = [ pkgs.inventoryDevEnv ]; + checkInputs = [ pkgs.inventoryDevEnv pkgs.postgresql_15 pkgs.overmind ]; checkPhase = '' mkdir -p $out - pytest --ds=network_inventory.settings.ram_test \ + pytest --ds=network_inventory.settings.local \ -nauto \ --nomigrations \ --cov=./src \