-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #209 from lidofinance/develop
Develop
- Loading branch information
Showing
93 changed files
with
6,979 additions
and
12,626 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
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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
name: Tests and checks | ||
name: Integration tests | ||
|
||
on: | ||
on: | ||
push: | ||
|
||
jobs: | ||
|
@@ -9,45 +9,31 @@ jobs: | |
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set up Python 3.10 | ||
- name: Set up Python 3.11 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.10' | ||
python-version: '3.11' | ||
|
||
- name: Setup poetry | ||
run: | | ||
curl -sSL https://install.python-poetry.org/ | python - && echo "$HOME/.poetry/bin" >> $GITHUB_PATH | ||
env: | ||
POETRY_VERSION: 1.4.2 | ||
POETRY_VERSION: 1.8.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 chronix | ||
run: | | ||
yarn chronix start & | ||
- name: Install Foundry | ||
uses: foundry-rs/foundry-toolchain@v1 | ||
|
||
- name: Integration tests with pytest | ||
run: | | ||
poetry run pytest tests -m integration | ||
env: | ||
|
||
WEB3_RPC_ENDPOINTS: ${{ secrets.WEB3_RPC_ENDPOINT }} | ||
DEPOSIT_CONTRACT: "0x00000000219ab540356cBB839Cbe05303d7705Fa" | ||
LIDO_LOCATOR: "0xC1d0b3DE6792Bf6b4b37EccdcC24e45978Cfd2Eb" | ||
ANVIL_PATH: "" |
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: Tests and checks | ||
|
||
on: | ||
push: | ||
|
||
jobs: | ||
tests: | ||
name: App tests | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set up Python 3.11 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.11' | ||
|
||
- name: Setup poetry | ||
run: | | ||
curl -sSL https://install.python-poetry.org/ | python - && echo "$HOME/.poetry/bin" >> $GITHUB_PATH | ||
env: | ||
POETRY_VERSION: 1.8.2 | ||
|
||
- name: Install dependencies | ||
run: | | ||
poetry install | ||
- name: Lint with Ruff | ||
run: | | ||
poetry run ruff check --output-format=github . | ||
continue-on-error: true | ||
|
||
- name: Format with Ruff | ||
run: | | ||
poetry run ruff check --output-format=github . | ||
continue-on-error: true | ||
|
||
- name: Typecheck with Pyright | ||
run: | | ||
poetry run pyright | ||
continue-on-error: true | ||
|
||
- name: Unit tests with pytest | ||
run: | | ||
poetry run pytest tests -m unit |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,4 +1,3 @@ | ||
|
||
Apache License | ||
Version 2.0, January 2004 | ||
http://www.apache.org/licenses/ | ||
|
Oops, something went wrong.