From 9e2c2d8a813a5466a9256ebbafc37557bde3a7b9 Mon Sep 17 00:00:00 2001 From: Ouziel Slama Date: Tue, 5 Mar 2024 14:58:59 +0100 Subject: [PATCH] Tweak M1 job --- .github/workflows/build_and_test.yaml | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/.github/workflows/build_and_test.yaml b/.github/workflows/build_and_test.yaml index ff01000618..0d4bfc43d4 100644 --- a/.github/workflows/build_and_test.yaml +++ b/.github/workflows/build_and_test.yaml @@ -91,11 +91,6 @@ jobs: # Install dependencies - #- uses: actions/setup-python@v4 - # with: - # python-version: ${{ env.PYTHON_VERSION }} - # cache: 'pip' - - name: Install Rust toolchain uses: actions-rs/toolchain@v1 with: @@ -107,15 +102,15 @@ jobs: id: set-up-homebrew uses: Homebrew/actions/setup-homebrew@master - - name: Install leveldb + - name: Install Python 3.10 and leveldb run: | - brew install python@3.10 leveldb openssl + brew install python@3.10 leveldb echo '/opt/homebrew/opt/python@3.10/libexec/bin' >> $GITHUB_PATH - name: Install pytest and build module run: | - pip3.10 install pytest - python3.10 -m pip install --upgrade build + pip3 install pytest + python3 -m pip install --upgrade build # Build counterparty packages @@ -126,11 +121,11 @@ jobs: - name: Build counterparty-lib run: | - cd counterparty-lib && python3.10 -m build --out ../dist + cd counterparty-lib && python3 -m build --out ../dist - name: Build counterparty-cli run: | - cd counterparty-cli && python3.10 -m build --out ../dist + cd counterparty-cli && python3 -m build --out ../dist # Install counterparty packages @@ -138,7 +133,7 @@ jobs: run: | export LIBRARY_PATH="$LIBRARY_PATH:$(brew --prefix)/lib" export CPATH="$CPATH:$(brew --prefix)/include" - pip3.10 install dist/*.whl --force-reinstall + pip3 install dist/*.whl --force-reinstall # Run counterparty-lib tests