Skip to content

Commit

Permalink
Fix: Test
Browse files Browse the repository at this point in the history
  • Loading branch information
1yam committed Nov 7, 2023
1 parent f3f3f0a commit abf2ef4
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/build-wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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: |
Expand All @@ -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"
Expand Down

0 comments on commit abf2ef4

Please sign in to comment.