From 3dfee5a7ef13b887e94b8a8909c372606bbb2375 Mon Sep 17 00:00:00 2001 From: Geoffroy Jamgotchian Date: Mon, 14 Oct 2024 14:45:31 +0200 Subject: [PATCH] Add GH CI Signed-off-by: Geoffroy Jamgotchian --- .github/workflows/ci.yml | 35 +++++++++++++++++++++++++++++++++++ .gitignore | 1 + 2 files changed, 36 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..9f36253 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,35 @@ +name: CI + +on: + pull_request: + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Install Ubuntu packages + env: + DEBIAN_FRONTEND: noninteractive + run: | + apt update + apt -y install maven python3 pipx + pipx install poetry + + - name: Setup GraalVM + uses: graalvm/setup-graalvm@v1 + with: + java-version: '17' + distribution: 'graalvm' + + - name: Checkout sources + uses: actions/checkout@v4 + + - name: Install dependencies + run: poetry install + + - name: Build wheel + run: poetry build + + - name: Run tests + run: poetry run pytest diff --git a/.gitignore b/.gitignore index a09c56d..c7f38c4 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /.idea +/dist