From 38aae907fd065ee69c1c43b7a2818d1daa7a85d9 Mon Sep 17 00:00:00 2001 From: Pieter De Gendt Date: Wed, 18 Sep 2024 18:55:17 +0200 Subject: [PATCH] .github: Add workflow for creating a pypi package Add a package workflow with the latest python version to test creating a pypi release. Signed-off-by: Pieter De Gendt --- .github/workflows/package.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/package.yml diff --git a/.github/workflows/package.yml b/.github/workflows/package.yml new file mode 100644 index 0000000..f90c65b --- /dev/null +++ b/.github/workflows/package.yml @@ -0,0 +1,25 @@ +name: Python Package + +on: [push, pull_request, workflow_call] + +jobs: + package: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: "3.12" + - name: Install Python dependencies + run: | + pip3 install build + - name: Build a binary wheel and a source tarball + run: | + python -m build + - name: Store the distribution packages + uses: actions/upload-artifact@v4 + with: + name: python-package-distributions + path: dist/