network_inventory/.github/workflows/tests.yml

22 lines
599 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-28 12:57:32 +02:00
- name: Environment setup
run: nix develop --command bash -c "poetry install"
2023-08-27 19:06:06 +02:00
- name: Test
2023-08-28 12:57:32 +02:00
run: nix develop --command bash -c "dev test"
env:
PROJECT_DIR: ${{ github.workspace }}