From 709548a9632f71438b7bd927ce70ee6f5ee2f7d3 Mon Sep 17 00:00:00 2001 From: nikolay19 Date: Thu, 7 Mar 2024 15:58:45 +0300 Subject: [PATCH] PR&slither version to sheet --- .github/workflows/benchmark.yml | 13 ++++++++++--- slitherin-benchmark | 2 +- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index 48cebf0..013bd3a 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -45,20 +45,26 @@ jobs: - name: Run Benchmark run: | cd slitherin-benchmark/ - python runner.py -i contracts/mainnet -o mainnet.csv --limit 8000 --skip-duplicates --skip-libs + python runner.py -i contracts/mainnet -o mainnet.csv -eo mainnet_extra.csv --limit 8000 --skip-duplicates --skip-libs - name: Upload sheet run: | cd slitherin-benchmark/ echo $GOOGLE_JWT > service_account.json - python save_sheet.py -i mainnet.csv -sa service_account.json -si $GOOGLE_SHEET_ID -ln mainnet + python save_sheet.py -i mainnet.csv -sa service_account.json -si $GOOGLE_SHEET_ID -ln mainnet -pr $PR_NUMBER env: GOOGLE_JWT : ${{secrets.SERVICE_ACCOUNT}} GOOGLE_SHEET_ID : ${{ secrets.GOOGLE_SHEET_ID }} + PR_NUMBER: ${{ github.event.number }} - name: 'Upload Artifact' uses: actions/upload-artifact@v3 with: name: mainnet path: slitherin-benchmark/mainnet.csv + - name: 'Upload Artifact Extra' + uses: actions/upload-artifact@v3 + with: + name: mainnet + path: slitherin-benchmark/mainnet_extra.csv RunBenchmarkOZ: runs-on: ubuntu-latest steps: @@ -102,10 +108,11 @@ jobs: run: | cd slitherin-benchmark/ echo $GOOGLE_JWT > service_account.json - python save_sheet.py -i oz.csv -sa service_account.json -si $GOOGLE_SHEET_ID -ln OZ + python save_sheet.py -i oz.csv -sa service_account.json -si $GOOGLE_SHEET_ID -ln OZ -pr $PR_NUMBER env: GOOGLE_JWT : ${{secrets.SERVICE_ACCOUNT}} GOOGLE_SHEET_ID : ${{ secrets.GOOGLE_SHEET_ID }} + PR_NUMBER: ${{ github.event.number }} - name: 'Upload Artifact' uses: actions/upload-artifact@v3 with: diff --git a/slitherin-benchmark b/slitherin-benchmark index 0690155..e8a7b64 160000 --- a/slitherin-benchmark +++ b/slitherin-benchmark @@ -1 +1 @@ -Subproject commit 069015590cdd75f1348a1f78d1c9d1ba84021dff +Subproject commit e8a7b64b52af91eb257399cdaf16c68c5695d9d7