Skip to content

Commit

Permalink
merge dev
Browse files Browse the repository at this point in the history
  • Loading branch information
TilakMaddy committed Aug 18, 2024
2 parents d1358cb + 87d8c5b commit 11ebb5f
Show file tree
Hide file tree
Showing 41 changed files with 2,118 additions and 702 deletions.
93 changes: 93 additions & 0 deletions .github/workflows/python.yml
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
66 changes: 49 additions & 17 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 11ebb5f

Please sign in to comment.