network_inventory/.github/workflows/tests.yml

22 lines
709 B
YAML
Raw Normal View History

2022-11-12 22:46:46 +01:00
on:
push:
2022-11-19 15:35:44 +01:00
branches: [ "master", "dev" ]
2022-11-12 22:46:46 +01:00
pull_request:
# The branches below must be a subset of the branches above
2022-11-19 15:35:44 +01:00
branches: [ "master", "dev" ]
2022-11-30 22:35:26 +01:00
workflow_dispatch:
2022-11-19 15:33:52 +01:00
2022-11-12 22:46:46 +01:00
jobs:
tests:
runs-on: ubuntu-latest
steps:
2022-11-21 23:09:07 +01:00
- uses: actions/checkout@v3
2023-07-10 09:36:23 +02:00
- uses: cachix/install-nix-action@v22
- uses: DeterminateSystems/magic-nix-cache-action@main
2023-08-27 15:02:36 +02:00
- 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"