From f6d5c48b23bf7aa0d7f4a8b3d9b25671a18de981 Mon Sep 17 00:00:00 2001 From: Fishhh Date: Fri, 3 May 2024 02:56:45 +0200 Subject: [PATCH] WIP: Add build and test workflow --- .github/workflows/main.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/main.yml 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