Build and test #5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 .. && make -j $(nproc) | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: wheel | |
path: ./build/qalculate*.whl | |
- run: sudo apt install python3-pytest | |
- run: pytest |