ci.yml (775B)
1 name: CI 2 on: 3 push: 4 branches: [ main ] 5 pull_request: 6 branches: [ main ] 7 # also executable manually 8 workflow_dispatch: 9 10 jobs: 11 build: 12 runs-on: ubuntu-latest 13 steps: 14 - uses: actions/checkout@v2 15 - uses: cachix/install-nix-action@v12 16 with: 17 install_url: https://github.com/numtide/nix-flakes-installer/releases/download/nix-2.4pre20201221_9fab14a/install 18 extra_nix_config: | 19 experimental-features = nix-command flakes 20 - name: build dependencies 21 run: nix build path://$PWD/ 22 - name: Run tests 23 run: PATH="$PWD/result/bin" python3 ./test.py 2>&1 24 - name: Run tests again (checks that the hashes don't change randomly) 25 run: PATH="$PWD/result/bin" python3 ./test.py 2>&1