From df9bf121bb75fcbaf28cba238318a3d73af8e500 Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Thu, 23 Mar 2023 08:58:29 +0100 Subject: [PATCH] Initial pip build test --- .github/workflows/test-pip-build.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/test-pip-build.yml diff --git a/.github/workflows/test-pip-build.yml b/.github/workflows/test-pip-build.yml new file mode 100644 index 000000000..33ba6032a --- /dev/null +++ b/.github/workflows/test-pip-build.yml @@ -0,0 +1,28 @@ +name: ChangeDetection.io PIP package test + +# Triggers the workflow on push or pull request events + +# This line doesnt work, even tho it is the documented one +on: [push, pull_request] + + # Changes to requirements.txt packages and Dockerfile may or may not always be compatible with arm etc, so worth testing + # @todo: some kind of path filter for requirements.txt and Dockerfile +jobs: + test-pip-build-basics: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - name: Set up Python 3.9 + uses: actions/setup-python@v2 + with: + python-version: 3.9 + + + - name: Test that the basic pip built package runs without error + run: | + mkdir dist + python3 setup.py bdist_wheel + pip3 install -r requirements.txt + rm ./changedetection.py + pip3 install dist/changedetection.io*.whl