Revert "Revert "Try to use the db in tests""

This reverts commit 757e1da5cb.
This commit is contained in:
Andreas Zweili 2023-07-20 21:06:54 +02:00
parent 1a4c75c7aa
commit 64bbd528ae
2 changed files with 3 additions and 2 deletions

View File

@ -13,6 +13,7 @@ jobs:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- uses: cachix/install-nix-action@v22 - uses: cachix/install-nix-action@v22
- uses: DeterminateSystems/magic-nix-cache-action@main - uses: DeterminateSystems/magic-nix-cache-action@main
- uses: HatsuneMiku3939/direnv-action@v1
- name: Test - name: Test
run: | run: |
nix flake check -L -j auto nix flake check -L -j auto

View File

@ -82,10 +82,10 @@
doCheck = true; doCheck = true;
name = "test"; name = "test";
src = ./.; src = ./.;
checkInputs = [ pkgs.inventoryDevEnv ]; checkInputs = [ pkgs.inventoryDevEnv pkgs.postgresql_15 pkgs.overmind ];
checkPhase = '' checkPhase = ''
mkdir -p $out mkdir -p $out
pytest --ds=network_inventory.settings.ram_test \ pytest --ds=network_inventory.settings.local \
-nauto \ -nauto \
--nomigrations \ --nomigrations \
--cov=./src \ --cov=./src \