From 39713469b0ead1454bcbae751850c109e5b7a931 Mon Sep 17 00:00:00 2001 From: Andreas Zweili Date: Wed, 3 Apr 2024 22:14:52 +0200 Subject: [PATCH] Add a test job for Github actions --- .github/workflows/tests.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/tests.yml diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000..54e7c2f --- /dev/null +++ b/.github/workflows/tests.yml @@ -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"