Skip to content

Add checks.yml to workflow #315

Add checks.yml to workflow

Add checks.yml to workflow #315

name: Tests and checks
on:
push:
jobs:
tests:
name: App tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Setup poetry
run: |
curl -sSL https://install.python-poetry.org/ | python - && echo "$HOME/.poetry/bin" >> $GITHUB_PATH
env:
POETRY_VERSION: 1.4.2
- name: Install dependencies
run: |
poetry install
- name: Unit Tests with pytest
run: |
poetry run pytest tests -m unit
- name: Set up node
uses: actions/[email protected]
with:
node-version: '18.17.1'
cache: 'yarn'
- name: Install dependencies
run: yarn install --immutable
- name: Run hardhat
run: |
yarn hardhat node --fork ${{ secrets.WEB3_RPC_ENDPOINT }} &
- name: Integration Tests with pytest
run: |
poetry run pytest tests -m integration
env:
WEB3_RPC_ENDPOINTS: http://127.0.0.1:8545
DEPOSIT_CONTRACT: "0xff50ed3d0ec03aC01D4C79aAd74928BFF48a7b2b"
LIDO_LOCATOR: "0x1eDf09b5023DC86737b59dE68a8130De878984f5"