Skip to content

Commit

Permalink
WIP: Add build and test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
afishhh committed May 5, 2024
1 parent 5be3f15 commit 51b802c
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
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

0 comments on commit 51b802c

Please sign in to comment.