Skip to content

Commit

Permalink
ticket-1577 IMA Agent moved into it's own repository
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiy-skalelabs committed Oct 12, 2023
1 parent 0882ae2 commit 0a5856f
Showing 1 changed file with 63 additions and 63 deletions.
126 changes: 63 additions & 63 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -169,73 +169,73 @@ jobs:
python predeployed/scripts/generate_abi.py > data/ima-$VERSION-predeployed-abi.json
test-integration:
runs-on: ubuntu-latest
env:
working-directory: ./test
steps:
- uses: actions/checkout@v2

- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"

- uses: actions/cache@v2
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Set up Node
uses: actions/setup-node@v2
with:
node-version: '16'

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.8

- name: Compile contracts
working-directory: ./proxy
run: |
yarn install
runs-on: ubuntu-latest
env:
working-directory: ./test
steps:
- uses: actions/checkout@v2

- name: Install all NPMs
run: |
yarn install
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"

- name: Start background ganache
working-directory: ./proxy
run: |
npx ganache --miner.blockGasLimit 12000000 --logging.quiet --chain.allowUnlimitedContractSize --wallet.defaultBalance 2000000 --wallet.accountKeysPath ../test/accounts.json &
- uses: actions/cache@v2
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Prepare test (PY part)
working-directory: ${{env.working-directory}}
run: |
python3 ../scripts/config_from_accounts.py accounts.json config.json
pip3 install -r requirements.txt
- uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Run test (PY part)
working-directory: ${{env.working-directory}}
run: |
python3 test.py
- name: Set up Node
uses: actions/setup-node@v2
with:
node-version: '16'

- name: Prepare test (JS part)
working-directory: ${{env.working-directory}}
run: |
yarn install
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.8

- name: Run test (JS part)
working-directory: ${{env.working-directory}}
run: |
yarn test
- name: Compile contracts
working-directory: ./proxy
run: |
yarn install
- name: Install all NPMs
run: |
yarn install
- name: Start background ganache
working-directory: ./proxy
run: |
npx ganache --miner.blockGasLimit 12000000 --logging.quiet --chain.allowUnlimitedContractSize --wallet.defaultBalance 2000000 --wallet.accountKeysPath ../test/accounts.json &
- name: Prepare test (PY part)
working-directory: ${{env.working-directory}}
run: |
python3 ../scripts/config_from_accounts.py accounts.json config.json
pip3 install -r requirements.txt
- name: Run test (PY part)
working-directory: ${{env.working-directory}}
run: |
python3 test.py
- name: Prepare test (JS part)
working-directory: ${{env.working-directory}}
run: |
yarn install
- name: Run test (JS part)
working-directory: ${{env.working-directory}}
run: |
yarn test

0 comments on commit 0a5856f

Please sign in to comment.