Skip to content

Build and test

Build and test #4

Workflow file for this run

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