Skip to content

Bump web3 from 6.20.2 to 7.6.0 #6299

Bump web3 from 6.20.2 to 7.6.0

Bump web3 from 6.20.2 to 7.6.0 #6299

Workflow file for this run

##
## Copyright 2024 Ocean Protocol Foundation
## SPDX-License-Identifier: Apache-2.0
##
name: pdr-backend tests
on:
pull_request:
push:
branches: [main]
workflow_dispatch:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
test:
if: ${{ !(github.event.action == 'synchronized' && github.head_ref == 'main') }}
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Setup repository
uses: actions/checkout@v3
- name: Set up Python 3.11
uses: actions/setup-python@v2
with:
python-version: "3.11"
- uses: actions/checkout@v2
name: Checkout Barge
with:
repository: "oceanprotocol/barge"
path: "barge"
ref: "5bd4a318c732d84a6b7fbeb193cee7fb16891a67"
- name: Run Barge
working-directory: ${{ github.workspace }}/barge
env:
SUBGRAPH_VERSION: main
run: |
bash -x start_ocean.sh --no-aquarius --no-elasticsearch --no-provider --no-dashboard --with-thegraph --predictoor > start_ocean.log &
- name: Install dependencies
working-directory: ${{ github.workspace }}
run: |
python -m pip install --upgrade pip
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: |
coverage run --source=pdr_backend --omit=*/test/*,*/test_ganache/*,*/test_noganache/* -m pytest
coverage report
coverage xml
- name: Publish code coverage
uses: paambaati/codeclimate-action@v5.0.0
env:
CC_TEST_REPORTER_ID: ${{secrets.CC_TEST_REPORTER_ID}}