-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
41 changed files
with
2,118 additions
and
702 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
on: [push, pull_request, workflow_dispatch] | ||
|
||
name: Aderyn-py | ||
|
||
jobs: | ||
check: | ||
name: Check | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout sources | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install stable toolchain | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: stable | ||
override: true | ||
|
||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.11" | ||
|
||
- name: Install git submodules | ||
run: | | ||
git submodule update --init --recursive | ||
- name: Run cargo check | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: check | ||
|
||
reports: | ||
name: Check Reports | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: foundry-toolchain | ||
uses: foundry-rs/[email protected] | ||
|
||
- name: Checkout sources | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install stable toolchain | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: stable | ||
override: true | ||
|
||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.11" | ||
cache: "pip" | ||
|
||
- name: Submodule init | ||
run: | | ||
git submodule update --init --recursive | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 20 | ||
cache: "npm" | ||
|
||
- uses: pnpm/action-setup@v3 | ||
with: | ||
version: 8 | ||
|
||
- uses: bahmutov/npm-install@v1 | ||
with: | ||
useLockFile: false | ||
working-directory: tests/2024-05-Sablier/v2-core | ||
|
||
- uses: bahmutov/npm-install@v1 | ||
with: | ||
useLockFile: false | ||
working-directory: tests/prb-math/ | ||
|
||
- name: Setup virtual environment | ||
run: | | ||
python -m venv venv | ||
source venv/bin/activate | ||
pip install -r ./aderyn_py/requirements.txt | ||
- name: Run tests | ||
run: | | ||
source venv/bin/activate | ||
cd aderyn_py | ||
maturin develop | ||
pytest tests |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.