Skip to content

Build and test

Build and test #7

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
- run: sudo apt install build-essential cmake python3 python3-dev python3-pybind11 pybind11-dev
- run: sudo apt install autoconf intltool libtool automake libgmp-dev libmpfr-dev libcurl4-openssl-dev libicu-dev libxml2-dev
- run: sudo apt install clang
- run: mkdir build && cd build && cmake -DUSE_SYSTEM_LIBQALCULATE=OFF .. && make -j $(nproc)
- uses: actions/upload-artifact@v4
with:
name: wheel
path: ./build/qalculate*.whl
- run: sudo apt install python3-pytest
- run: pytest