on: push: branches: [ "master", "dev" ] pull_request: # The branches below must be a subset of the branches above branches: [ "master", "dev" ] env: IMAGE_NAME: network_inventory jobs: tests: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - uses: cachix/install-nix-action@v18 - name: Enable Nix shell run: | nix develop # stop the build if there are Python syntax errors or undefined names flake8 . --count --show-source --statistics pytest --ds=network_inventory.settings.ram_test -nauto --nomigrations --cov=.