From 6ce14d5aa432fef047646aac317ebdf6cf09dd13 Mon Sep 17 00:00:00 2001 From: Hugo Herter Date: Thu, 2 Mar 2023 14:35:38 +0100 Subject: [PATCH 1/2] Fix: GitHub actions failed on Ubuntu due to Grub Errors were encountered while processing: grub-efi-amd64-signed needrestart is being skipped since dpkg has failed Co-authored-by: Ali El broudi --- .github/workflows/build-wheels.yml | 4 ++++ .github/workflows/code-quality.yml | 3 +++ 2 files changed, 7 insertions(+) diff --git a/.github/workflows/build-wheels.yml b/.github/workflows/build-wheels.yml index ce299659..4816482d 100644 --- a/.github/workflows/build-wheels.yml +++ b/.github/workflows/build-wheels.yml @@ -12,6 +12,10 @@ jobs: steps: - uses: actions/checkout@v3 + - name: Workaround github issue https://github.com/actions/runner-images/issues/7192 + if: startsWith(matrix.os, 'ubuntu-') + run: sudo echo RESET grub-efi/install_devices | sudo debconf-communicate grub-pc + - name: Install required system packages for macOS if: startsWith(matrix.os, 'macos-') run: | diff --git a/.github/workflows/code-quality.yml b/.github/workflows/code-quality.yml index 70a423b4..494c75e8 100644 --- a/.github/workflows/code-quality.yml +++ b/.github/workflows/code-quality.yml @@ -9,6 +9,9 @@ jobs: steps: - uses: actions/checkout@v3 + - name: Workaround github issue https://github.com/actions/runner-images/issues/7192 + run: sudo echo RESET grub-efi/install_devices | sudo debconf-communicate grub-pc + - name: Install required system packages only for Ubuntu Linux run: | sudo apt-get update From d98b2b8ae6515d0e950258c5669965da1d0af7e3 Mon Sep 17 00:00:00 2001 From: Hugo Herter Date: Thu, 2 Mar 2023 15:05:16 +0100 Subject: [PATCH 2/2] Fix: Version could not be detected in pip install --- docker/python-3.10.dockerfile | 1 + docker/python-3.11.dockerfile | 1 + docker/python-3.9.dockerfile | 1 + 3 files changed, 3 insertions(+) diff --git a/docker/python-3.10.dockerfile b/docker/python-3.10.dockerfile index c27a87a7..98d27a78 100644 --- a/docker/python-3.10.dockerfile +++ b/docker/python-3.10.dockerfile @@ -28,6 +28,7 @@ COPY . . USER root RUN chown -R user:user /opt/aleph-sdk-python +RUN git config --global --add safe.directory /opt/aleph-sdk-python RUN pip install -e .[testing,ethereum,solana,tezos] RUN mkdir /data diff --git a/docker/python-3.11.dockerfile b/docker/python-3.11.dockerfile index c5653281..d3c5022c 100644 --- a/docker/python-3.11.dockerfile +++ b/docker/python-3.11.dockerfile @@ -28,6 +28,7 @@ COPY . . USER root RUN chown -R user:user /opt/aleph-sdk-python +RUN git config --global --add safe.directory /opt/aleph-sdk-python RUN pip install -e .[testing,ethereum,solana,tezos] RUN mkdir /data diff --git a/docker/python-3.9.dockerfile b/docker/python-3.9.dockerfile index a4b5ebcf..48d27592 100644 --- a/docker/python-3.9.dockerfile +++ b/docker/python-3.9.dockerfile @@ -28,6 +28,7 @@ COPY . . USER root RUN chown -R user:user /opt/aleph-sdk-python +RUN git config --global --add safe.directory /opt/aleph-sdk-python RUN pip install -e .[testing,ethereum,solana,tezos] RUN mkdir /data