Try to use the db in tests
This commit is contained in:
parent
3860b94c0b
commit
10c221ec8b
|
@ -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
|
||||
|
|
|
@ -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 \
|
||||
|
|
Loading…
Reference in New Issue