From b3eeead482a88167333872fd4594812b8d4d999e Mon Sep 17 00:00:00 2001 From: Andreas Zweili Date: Tue, 22 Nov 2022 11:37:33 +0100 Subject: [PATCH] Split linting and tests --- .github/workflows/tests.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index e6f90dc..fec7449 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -14,8 +14,10 @@ jobs: steps: - uses: actions/checkout@v3 - uses: cachix/install-nix-action@v18 - - name: Enable Nix shell + - name: Linting run: | nix develop --command flake8 . --count --show-source --statistics - # stop the build if there are Python syntax errors or undefined names + + - name: Testing + run: | nix develop --command pytest --ds=network_inventory.settings.ram_test -nauto --nomigrations --cov=.