Skip to content

Build and test

Build and test #2

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
- run: nix develop --command bash -c "mkdir build && cd build && cmake .. && make -j 16"
- uses: actions/upload-artifact@v4
with:
name: wheel
path: ./build/qalculate*.whl
- run: nix develop --command pytest