Skip to content

Merge pull request #1031 from Badger-Finance/suspend-eth-bots #1944

Merge pull request #1031 from Badger-Finance/suspend-eth-bots

Merge pull request #1031 from Badger-Finance/suspend-eth-bots #1944

Workflow file for this run

on:
# Trigger the workflow on push or pull request,
# but only for the main branch
push:
branches:
- development
- main
pull_request:
name: main workflow
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DISCORD_WEBHOOK_URL: ${{ secrets.TEST_DISCORD_WEBHOOK }}
NODE_URL: ${{ secrets.NODE_URL }}
POLYGON_NODE_URL: ${{ secrets.POLYGON_NODE_URL }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
WEB3_INFURA_PROJECT_ID: ${{ secrets.WEB3_INFURA_PROJECT_ID }}
ENV: TEST
KUBE: 'False'
# increasing available memory for node reduces issues with ganache crashing
# https://nodejs.org/api/cli.html#cli_max_old_space_size_size_in_megabytes
NODE_OPTIONS: --max_old_space_size=4096
jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v1
- name: npm install
run: npm install
- name: Install Ganache
run: npm install -g [email protected]
- name: Setup Python 3.9
uses: actions/setup-python@v2
with:
python-version: '3.9'
- name: Install Requirements
run: pip install -r requirements.txt && pip install -r requirements-dev.txt
- name: Run Tests
run: brownie test --cov-report=xml --cov=.
- uses: codecov/codecov-action@v1
with:
fail_ci_if_error: false
token: ${{ secrets.CODECOV_TOKEN }}