22 lines
709 B
YAML
22 lines
709 B
YAML
on:
|
|
push:
|
|
branches: [ "master", "dev" ]
|
|
pull_request:
|
|
# The branches below must be a subset of the branches above
|
|
branches: [ "master", "dev" ]
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
tests:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: cachix/install-nix-action@v22
|
|
- uses: DeterminateSystems/magic-nix-cache-action@main
|
|
- name: Setup dependencies
|
|
run: nix develop --command bash -c "pdm sync"
|
|
- name: Linting
|
|
run: nix develop --command bash -c "pdm run dev linting"
|
|
- name: Tests
|
|
run: nix develop --command bash -c "pdm run pytest --ds=network_inventory.settings.ram_test -nauto --nomigrations --cov=./src ./src"
|