Skip to content

Commit

Permalink
#246 - CI install dependencies first then wait for contract deployment (
Browse files Browse the repository at this point in the history
#247)

* Install dependencies before waiting for contract deployment

* Define timeout

---------

Co-authored-by: Trent McConaghy <gtrent@gmail.com>
  • Loading branch information
trizin and trentmc authored Oct 18, 2023
1 parent 865d20b commit c2c9e4f
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ env:
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Setup repository
uses: actions/checkout@v3
Expand All @@ -36,14 +37,6 @@ jobs:
SUBGRAPH_VERSION: main
run: |
bash -x start_ocean.sh --no-aquarius --no-elasticsearch --no-provider --no-dashboard --with-thegraph --predictoor > start_ocean.log &
- name: Wait for contracts deployment
working-directory: ${{ github.workspace }}/barge
run: |
for i in $(seq 1 250); do
sleep 5
[ -f "$HOME/.ocean/ocean-contracts/artifacts/ready" ] && break
done
- name: Install dependencies
working-directory: ${{ github.workspace }}
Expand All @@ -52,6 +45,14 @@ jobs:
pip install -r requirements.txt
pip install pytest
- name: Wait for contracts deployment
working-directory: ${{ github.workspace }}/barge
run: |
for i in $(seq 1 250); do
sleep 5
[ -f "$HOME/.ocean/ocean-contracts/artifacts/ready" ] && break
done
- name: Test with pytest
id: pytest
run: |
Expand Down

0 comments on commit c2c9e4f

Please sign in to comment.