-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: Added Github actions for testing local calls
Signed-off-by: carlos.vdr <carlos.vdr@semiotic.ai>
- Loading branch information
Showing
6 changed files
with
65 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: Local chain tests | ||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
jobs: | ||
tests: | ||
strategy: | ||
fail-fast: true | ||
runs-on: ubuntu-latest | ||
name: Build and Test | ||
steps: | ||
- uses: actions/checkout@v4 | ||
name: Check out repository | ||
with: | ||
submodules: recursive | ||
- uses: actions/setup-node@v2 | ||
name: Set up Node.js | ||
with: | ||
node-version: "lts/gallium" | ||
- name: Install graph CLI | ||
run: npm install -g @graphprotocol/graph-cli | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.8' | ||
cache: pip | ||
- name: Install Foundry | ||
uses: foundry-rs/foundry-toolchain@v1 | ||
- name: Start Docker Compose | ||
run: docker-compose up -d | ||
working-directory: ./tests | ||
- name: Checking graph-node availability | ||
uses: nick-fields/retry@v2 | ||
with: | ||
max_attempts: 3 | ||
retry_on: error | ||
timeout_seconds: 5 | ||
command: nc -zv 127.0.0.1 8030 | ||
- name: Installing python requirements | ||
run: pip install -r requirements.txt | ||
working-directory: ./tests | ||
- run: | | ||
yarn | ||
./contract_init.sh | ||
name: Build and Test | ||
working-directory: ./tests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,5 @@ eip712==0.2.1 | |
eth-account==0.8.0 | ||
eth-utils==2.2.0 | ||
web3==6.8.0 | ||
requests==2.31.0 | ||
requests==2.31.0 | ||
backoff==2.2.1 |