diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..166217c --- /dev/null +++ b/.github/workflows/main.yml @@ -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