Add a test job for Github actions

This commit is contained in:
Andreas Zweili 2024-04-03 22:14:52 +02:00
parent 429b0c998b
commit 39713469b0
1 changed files with 17 additions and 0 deletions

17
.github/workflows/tests.yml vendored Normal file
View File

@ -0,0 +1,17 @@
on:
push:
branches: [ "main", "dev" ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ "main", "dev" ]
workflow_dispatch:
jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v26
- uses: DeterminateSystems/magic-nix-cache-action@main
- name: Tests
run: nix develop --impure --command "python-test"