Skip to content

Commit

Permalink
add a new workflow to use nix and replace github actions setup with p…
Browse files Browse the repository at this point in the history
…ython
  • Loading branch information
akshaykarle committed Oct 16, 2024
1 parent dffcaf3 commit 97e99df
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Build

on:
push:
pull_request:

jobs:
test:
runs-on: ubuntu-22.04
permissions:
id-token: "write"
contents: "read"
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- uses: DeterminateSystems/flake-checker-action@main
- name: Run tests
run: pytest
shell: nix develop --command bash -e {0}

0 comments on commit 97e99df

Please sign in to comment.