Skip to content

Commit

Permalink
Fix/workflow (#2825)
Browse files Browse the repository at this point in the history
  • Loading branch information
5A11 authored Dec 1, 2022
1 parent f48f143 commit 11fd4de
Showing 1 changed file with 36 additions and 79 deletions.
115 changes: 36 additions & 79 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: AEA framework sanity checks and tests
on: pull_request

jobs:
python_code_quality_checks:
python_checks:
continue-on-error: False
runs-on: '${{ matrix.os }}'
strategy:
Expand Down Expand Up @@ -35,7 +35,7 @@ jobs:
run: |
tox -e ${{ matrix.tox-job }}
go_code_checks:
go_checks:
continue-on-error: False
runs-on: ubuntu-latest
timeout-minutes: 20
Expand Down Expand Up @@ -169,7 +169,7 @@ jobs:
- name: Check spelling
run: tox -e spell_check

plugins_install_check:
plugins_install:
continue-on-error: False
runs-on: ${{ matrix.sys.os }}
strategy:
Expand Down Expand Up @@ -232,15 +232,15 @@ jobs:
run: |
make protolint
integration_checks:
integration_tests:
if: github.base_ref == 'main'
continue-on-error: True
needs:
- python_code_quality_checks
- go_code_checks
- python_checks
- go_checks
- misc_checks
- misc_checks_extra
- plugins_install_check
- plugins_install
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
Expand Down Expand Up @@ -283,16 +283,16 @@ jobs:
run: tox -e py3.8 -- -m 'integration and not unstable and not ledger' ./tests --ignore=tests/test_aea_core_packages


core_integration_checks:
core_packages_tests:
# tests intersection with ledger and integration
# limited tests set for quick checking primary functionality of the AEA
continue-on-error: True
needs:
- python_code_quality_checks
- go_code_checks
- python_checks
- go_checks
- misc_checks
- misc_checks_extra
- plugins_install_check
- plugins_install
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
Expand Down Expand Up @@ -334,15 +334,15 @@ jobs:
- name: Async integration tests
run: tox -e py3.8 -- tests/test_aea_core_packages/

integration_checks_ledger:
integration_ledger_tests:
if: github.base_ref == 'main'
continue-on-error: True
needs:
- python_code_quality_checks
- go_code_checks
- python_checks
- go_checks
- misc_checks
- misc_checks_extra
- plugins_install_check
- plugins_install
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
Expand Down Expand Up @@ -370,14 +370,14 @@ jobs:
- name: Integration tests
run: tox -e py3.8 -- -m 'integration and not unstable and ledger' ./tests --ignore=tests/test_aea_core_packages

aea-core-tests:
aea-tests:
continue-on-error: True
needs:
- python_code_quality_checks
- go_code_checks
- python_checks
- go_checks
- misc_checks
- misc_checks_extra
- plugins_install_check
- plugins_install
runs-on: ${{ matrix.os }}
strategy:
matrix:
Expand Down Expand Up @@ -447,15 +447,15 @@ jobs:
- name: Plugin tests
run: |
tox -e plugins-py${{ matrix.python_version }} -- -m 'not integration and not unstable'
aea-examples-tests:
examples-tests:
if: github.base_ref == 'main'
continue-on-error: True
needs:
- python_code_quality_checks
- go_code_checks
- python_checks
- go_checks
- misc_checks
- misc_checks_extra
- plugins_install_check
- plugins_install
runs-on: ubuntu-latest
timeout-minutes: 90
steps:
Expand All @@ -466,66 +466,23 @@ jobs:
- uses: actions/setup-go@v3
with:
go-version: "^1.17.0"
- if: matrix.os == 'ubuntu-latest'
name: Install dependencies (ubuntu-latest)
- name: Install dependencies (ubuntu-latest)
run: |
sudo apt-get update --fix-missing
sudo apt-get install libmbedtls-dev
sudo apt-get autoremove
sudo apt-get autoclean
pip install tox
# install Protobuf compiler
wget https://github.com/protocolbuffers/protobuf/releases/download/v3.19.4/protoc-3.19.4-linux-x86_64.zip
unzip protoc-3.19.4-linux-x86_64.zip -d protoc
sudo mv protoc/bin/protoc /usr/local/bin/protoc
make protolint_install
# sudo apt-get install -y protobuf-compiler
# use sudo rm /var/lib/apt/lists/lock above in line above update if dependency install failures persist
# use sudo apt-get dist-upgrade above in line below update if dependency install failures persist
- if: matrix.os == 'macos-latest'
name: Install dependencies (macos-latest)
run: |
pip install tox
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/v3.19.4/protoc-3.19.4-osx-x86_64.zip
unzip protoc-3.19.4-osx-x86_64.zip -d protoc
sudo mv protoc/bin/protoc /usr/local/bin/protoc
brew tap yoheimuta/protolint
brew install protolint
- if: matrix.os == 'windows-latest'
name: Install dependencies (windows-latest)
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
run: |
python -m pip install -U pip
echo "::add-path::C:\Program Files (x86)\Windows Kits\10\bin\10.0.18362.0\x64"
choco install protoc --version 3.19.4
choco install mingw -y
choco install make -y
# to check make was installed
make --version
pip install tox
# wget https://github.com/protocolbuffers/protobuf/releases/download/v3.19.4/protoc-3.19.4-win64.zip
# unzip protoc-3.19.4-win64.zip -d protoc
# sudo mv protoc/bin/protoc /usr/local/bin/protoc
python scripts/update_symlinks_cross_platform.py
make protolint_install_win
# just check protolint runs
protolint version
- name: Unit tests
run: |
tox -e py3.8 -- ./tests/test_examples
run: tox -e py3.8 -- tests/test_examples

aea-extras-tests:
continue-on-error: True
needs:
- python_code_quality_checks
- go_code_checks
- python_checks
- go_checks
- misc_checks
- misc_checks_extra
- plugins_install_check
- plugins_install
runs-on: ${{ matrix.os }}
strategy:
matrix:
Expand Down Expand Up @@ -596,11 +553,11 @@ jobs:
if: github.base_ref == 'main'
continue-on-error: True
needs:
- python_code_quality_checks
- go_code_checks
- python_checks
- go_checks
- misc_checks
- misc_checks_extra
- plugins_install_check
- plugins_install
runs-on: ${{ matrix.os }}
strategy:
matrix:
Expand Down Expand Up @@ -668,10 +625,10 @@ jobs:
run: |
tox -e py${{ matrix.python_version }} -- --cov=packages/fetchai/connections --cov=packages/fetchai/contracts --cov=packages/fetchai/protocols --cov=packages/fetchai/skills -m 'not integration and not unstable' ./tests/test_packages_for_aea_tests ./tests/test_packages
golang_checks:
golang_tests:
continue-on-error: True
needs:
- go_code_checks
- go_checks
runs-on: ${{ matrix.os }}
strategy:
matrix:
Expand Down Expand Up @@ -738,12 +695,12 @@ jobs:
coverage_checks:
continue-on-error: True
needs:
- python_code_quality_checks
- go_code_checks
- python_checks
- go_checks
- misc_checks
- misc_checks_extra
- docs_check
- plugins_install_check
- plugins_install
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
Expand Down

0 comments on commit 11fd4de

Please sign in to comment.