Upgrade macos in workflow #2790
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: AEA framework sanity checks and tests | |
on: | |
push: | |
branches: | |
- develop | |
- main | |
pull_request: | |
env: | |
IS_CI_WORKFLOW: True | |
jobs: | |
platform_checks: | |
continue-on-error: True | |
env: | |
PYTHONUTF8: 1 # mostly for windows to work properly with utf8 files | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [macos-latest] | |
python_version: ['3.8', '3.9', '3.10', '3.11'] | |
timeout-minutes: 120 | |
steps: | |
- uses: actions/checkout@master | |
- uses: actions/setup-python@v3 | |
with: | |
python-version: ${{ matrix.python_version }} | |
- uses: actions/setup-go@v3 | |
with: | |
go-version: "1.17.7" | |
- if: matrix.os == 'macos-latest' | |
name: Install dependencies (macos-latest) | |
run: | | |
pip install tomte[tox]==0.2.13 | |
brew install gcc | |
# brew install protobuf | |
# brew install https://raw.githubusercontent.com/Homebrew/homebrew-core/72457f0166d5619a83f508f2345b22d0617b5021/Formula/protobuf.rb | |
wget https://github.com/protocolbuffers/protobuf/releases/download/v24.3/protoc-24.3-osx-x86_64.zip | |
unzip protoc-24.3-osx-x86_64.zip -d protoc | |
sudo mv protoc/bin/protoc /usr/local/bin/protoc | |
brew tap yoheimuta/protolint | |
brew install protolint | |
# install ipfs | |
curl -O https://dist.ipfs.tech/go-ipfs/v0.6.0/go-ipfs_v0.6.0_darwin-amd64.tar.gz | |
tar -xvzf go-ipfs_v0.6.0_darwin-amd64.tar.gz | |
cd go-ipfs | |
sudo ./install.sh | |
cd .. | |
rm -rf go-ipfs | |
ipfs init | |
mkdir ~/.config/solana | |
echo "[6,206,143,203,220,22,227,247,237,23,114,181,56,70,53,98,224,64,192,221,134,115,153,146,252,81,8,41,237,224,225,176,195,11,129,62,207,146,39,47,172,98,101,87,102,166,105,202,33,169,134,76,27,149,148,68,4,15,215,47,196,227,216,48]" > ~/.config/solana/id.json | |
- if: True | |
name: Framework unit tests | |
run: | | |
tox -e py${{ matrix.python_version }} -- -m 'not integration and not unstable and not profiling' | |
- name: Packages unit tests | |
run: | | |
tox -e packages-py${{ matrix.python_version }} -- -m 'not integration and not unstable and not profiling' | |
- name: Plugin unit tests | |
run: | | |
tox -e plugins-py${{ matrix.python_version }} -- -m 'not integration and not unstable and not profiling' |