From abf2ef42701972bd4e2e24ef19536d720fa1b5bd Mon Sep 17 00:00:00 2001 From: 1yam <40899431+1yam@users.noreply.github.com> Date: Tue, 7 Nov 2023 14:26:42 +0100 Subject: [PATCH] Fix: Test --- .github/workflows/build-wheels.yml | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/build-wheels.yml b/.github/workflows/build-wheels.yml index af4dc13f..bd352863 100644 --- a/.github/workflows/build-wheels.yml +++ b/.github/workflows/build-wheels.yml @@ -12,22 +12,15 @@ jobs: build: strategy: matrix: - os: [macos-12, ubuntu-20.04, ubuntu-22.04] + os: [ macos-11, macos-12, ubuntu-20.04, ubuntu-22.04 ] runs-on: ${{matrix.os}} steps: - uses: actions/checkout@v3 - - name: Install Python 3.11 on macOS - if: startsWith(matrix.os, 'macos-') - run: | - brew update - brew install pyenv - echo 'if which pyenv > /dev/null; then eval "$(pyenv init -)"; fi' >> ~/.zshrc - source ~/.zshrc - pyenv install 3.11.0 - pyenv global 3.11.0 - python --version + - 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: Cache dependencies uses: actions/cache@v3 @@ -37,6 +30,13 @@ jobs: restore-keys: | ${{ runner.os }}-build-wheels- + - name: Install required system packages for macOS + if: startsWith(matrix.os, 'macos-') + run: | + brew update + brew tap cuber/homebrew-libsecp256k1 + brew install libsecp256k1 + - name: Install required system packages only for Ubuntu Linux if: startsWith(matrix.os, 'ubuntu-') run: | @@ -58,7 +58,7 @@ jobs: python3 -m pip install dist/aleph_sdk_python-*.whl - name: Import and use the package - # macOS tests fail this step because they use Python 3.11, which is not yet supported by our dependencies + # macos tests fail this step because they use Python 3.11, which is not yet supported by our dependencies if: startsWith(matrix.os, 'ubuntu-') run: | python3 -c "import aleph.sdk"