From 9cf1f26f4b558642ff7e31458d501e0e914ec0e4 Mon Sep 17 00:00:00 2001 From: Michael Engel Date: Fri, 19 Jan 2024 10:05:36 +0100 Subject: [PATCH] fixed workflow for publishing to pypi Install missing python3-gobject dependency. Also, remove check for diff for now since the generator produces unordered output, e.g. the functions and classes might be in different order. Signed-off-by: Michael Engel --- .github/workflows/publish.yml | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index eb064ab673..5e4d63a251 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -66,6 +66,7 @@ jobs: - name: Install dependencies run: | + dnf install python3-gobject python3 -m ensurepip --default-pip python3 -m pip install --upgrade pip setuptools wheel build python3 -m pip install -r src/bindings/generator/requirements.txt @@ -74,16 +75,6 @@ jobs: run: | ./build-scripts/generate-bindings.sh python - - name: Check for changes in generated python code - run: | - git config --global --add safe.directory $(pwd) - git diff --exit-code src/bindings/python/ - - - name: Prompt rebuilding python bindings - if: ${{ failure() }} - run: | - echo "Changes in D-Bus API spec detected. Please generated them." - - name: Build python bindings package run: | ./build-scripts/build-bindings.sh python