Skip to content

Commit

Permalink
WIP: Add build and test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
afishhh committed May 5, 2024
1 parent 5be3f15 commit f6d5c48
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: main
run-name: Build and test
on: [pull_request, push]
jobs:
build-and-run-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
with:
diagnostic-endpoint: ""
use-flakehub: false
- run: nix develop --command bash -c "mkdir build && cd build && cmake .. && make -j $(nproc)"
- uses: actions/upload-artifact@v4
with:
name: wheel
path: ./build/qalculate*.whl
- run: nix develop --command pytest

0 comments on commit f6d5c48

Please sign in to comment.