24 lines
591 B
YAML
24 lines
591 B
YAML
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: Linting
|
|
run: |
|
|
nix develop --command flake8 . --count --show-source --statistics
|
|
|
|
- name: Testing
|
|
run: |
|
|
nix develop --command pytest --ds=network_inventory.settings.ram_test -nauto --nomigrations --cov=.
|