Skip to content

Commit

Permalink
Merge pull request #113 from pessimistic-io/submodule_benchmark
Browse files Browse the repository at this point in the history
Submodule benchmark
  • Loading branch information
nikolay19 authored Jan 15, 2024
2 parents 9fcc59e + 6b1fc0a commit 8a4bb0b
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 0 deletions.
53 changes: 53 additions & 0 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Run Benchmark

on:
pull_request:
branches:
- 'master'
- 'develop'
jobs:
RunBenchmark:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
ref: 'submodule_benchmark'
submodules: 'true'
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: '18.x'
- name: Update pip
run: python -m pip install --upgrade pip
- name: Install solc-select
run: python -m pip install solc-select
- name: Install Slither
run: python -m pip install slither-analyzer
- name: Install Setuptools
run: python -m pip install setuptools
- name: Install Slitherin
run: python setup.py develop
- name: Configure
run: |
cd slitherin-benchmark/
mv example.config.py config.py
- name: Install node dependencies
run: npm ci
- name: Install benchmark requirements
run: |
cd slitherin-benchmark/
python -m pip install -r requirements.txt
- name: Run Benchmark
run: |
cd slitherin-benchmark/
python3 runner.py -i contracts/mainnet -o mainnet.csv --limit 5000
- name: 'Upload Artifact'
uses: actions/upload-artifact@v3
with:
name: benchmark
path: slitherin-benchmark/mainnet.csv
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "slitherin-benchmark"]
path = slitherin-benchmark
url = https://github.com/pessimistic-io/slitherin-benchmark.git
1 change: 1 addition & 0 deletions slitherin-benchmark
Submodule slitherin-benchmark added at e5abe8

0 comments on commit 8a4bb0b

Please sign in to comment.