Skip to content

Ocean.py library check #130

Ocean.py library check

Ocean.py library check #130

Workflow file for this run

##
## Copyright 2023 Ocean Protocol Foundation
## SPDX-License-Identifier: Apache-2.0
##
name: Ocean.py library check
on:
schedule:
- cron: '30 5 * * 2'
workflow_dispatch:
jobs:
build:
environment: CC_REPORTER_ID
runs-on: ubuntu-latest
steps:
- name: Setup Ocean.py
uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: '3.8'
- uses: actions/checkout@v2
name: Checkout Barge
with:
repository: "oceanprotocol/barge"
path: 'barge'
- name: Run Barge
working-directory: ${{ github.workspace }}/barge
env:
GANACHE_FORK: london
run: |
bash -x start_ocean.sh --no-dashboard 2>&1 --with-provider2 --with-c2d > start_ocean.log &
for i in $(seq 1 108); do
sleep 5
[ -f "$HOME/.ocean/ocean-contracts/artifacts/ready" -a -f "$HOME/.ocean/ocean-c2d/ready" ] && break
done
ls -la "$HOME/.ocean/ocean-contracts/artifacts/"
- name: Install dependencies
working-directory: ${{ github.workspace }}
run: |
python -m pip install --upgrade pip
pip install ocean-lib
pip install mkcodes pytest matplotlib
- name: Delete default runner images
run: |
docker image rm node:14
docker image rm node:14-alpine
docker image rm node:16
docker image rm node:16-alpine
docker image rm node:18
docker image rm node:18-alpine
docker image rm buildpack-deps:buster
docker image rm buildpack-deps:bullseye
docker image rm debian:10
docker image rm debian:11
docker image rm moby/buildkit:latest
- name: Generate and test readmes
working-directory: ${{ github.workspace }}
env:
TEST_PRIVATE_KEY1: "0x8467415bb2ba7c91084d932276214b11a3dd9bdb2930fefa194b666dd8020b99"
TEST_PRIVATE_KEY2: "0x1d751ded5a32226054cd2e71261039b65afb9ee1c746d055dd699b1150a5befc"
TEST_PRIVATE_KEY3: "0x732fbb7c355aa8898f4cff92fa7a6a947339eaf026a08a51f171199e35a18ae0"
ADDRESS_FILE: "~/.ocean/ocean-contracts/artifacts/address.json"
OCEAN_NETWORK_URL: "http://127.0.0.1:8545"
OCEAN_CONFIG_FILE: "config.ini"
FACTORY_DEPLOYER_PRIVATE_KEY: "0xc594c6e5def4bab63ac29eed19a134c130388f74f019bc74b8f4389df2837a58"
MUMBAI_RPC_URL: ${{ secrets.MUMBAI_RPC_URL }}
run: |
mkcodes --github --output tests/generated-readmes/test_{name}.{ext} READMEs
pytest tests/readmes/test_readmes.py
- name: Slack notify via webhook
uses: up9cloud/action-notify@master
if: cancelled() == false
env:
GITHUB_JOB_STATUS: ${{ job.status }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}