This repository has been archived by the owner on Jan 11, 2024. It is now read-only.
Update README.md #1138
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, dev ] | |
pull_request: | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v3 | |
with: | |
ref: ${{ github.event.pull_request.head.ref }} | |
submodules: recursive | |
- name: Install python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
- name: Install abi | |
run: pip install eth_abi | |
- name: Install lcov and genhtml | |
run: sudo apt-get update && sudo apt-get -y install lcov | |
- name: Install Foundry | |
uses: foundry-rs/foundry-toolchain@v1 | |
with: | |
cache: false | |
- name: Run coverage check - flaky so we run twice to catch false negatives | |
run: make coverage || make coverage | |
- name: Run tests | |
run: forge test -vvv --ffi | |