Migrate test suite to foundry #68
Workflow file for this run
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
name: Tests | |
on: | |
push: | |
branches: | |
- main | |
- develop | |
pull_request: | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Cache compiler installations | |
uses: actions/cache@v2 | |
with: | |
path: | | |
~/.solcx | |
~/.vvm | |
key: ${{ runner.os }}-compiler-cache | |
- name: Setup node.js | |
uses: actions/setup-node@v1 | |
with: | |
node-version: '12.x' | |
- name: Install ganache | |
run: npm install -g ganache-cli@6.12.1 | |
- name: Set up python 3.9 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.9 | |
- name: Set pip cache directory path | |
id: pip-cache-dir-path | |
run: | | |
echo "::set-output name=dir::$(pip cache dir)" | |
- name: Restore pip cache | |
uses: actions/cache@v2 | |
id: pip-cache | |
with: | |
path: | | |
${{ steps.pip-cache-dir-path.outputs.dir }} | |
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements-dev.txt') }} | |
restore-keys: | | |
${{ runner.os }}-pip-${{ hashFiles('**/requirements-dev.txt') }} | |
${{ runner.os }}-pip- | |
- name: Install python dependencies | |
run: pip install -r requirements-dev.txt | |
- name: Compile Code | |
run: brownie compile --size | |
- name: Run Tests | |
env: | |
ETHERSCAN_TOKEN: MW5CQA6QK5YMJXP2WP3RA36HM5A7RA1IHA | |
WEB3_INFURA_PROJECT_ID: b7821200399e4be2b4e5dbdf06fbe85b | |
run: brownie test |