fix[lang]: fix list typing issues #1096
Workflow file for this run
This file contains hidden or 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
| name: Gas Benchmark Report | |
| on: | |
| pull_request: | |
| branches: [master] | |
| permissions: | |
| contents: read | |
| env: | |
| PYTHON_VERSION: "3.12" | |
| jobs: | |
| gas-bench: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 45 | |
| steps: | |
| - name: Checkout merge commit | |
| uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| with: | |
| ref: refs/pull/${{ github.event.pull_request.number }}/merge | |
| path: head | |
| fetch-depth: 0 | |
| fetch-tags: true | |
| persist-credentials: false | |
| - name: Checkout base | |
| uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| with: | |
| ref: ${{ github.base_ref }} | |
| path: base | |
| fetch-depth: 0 | |
| fetch-tags: true | |
| persist-credentials: false | |
| - name: Copy scripts to base | |
| run: cp -r head/.github/scripts base/.github/ | |
| - name: Set up Python ${{ env.PYTHON_VERSION }} | |
| uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0 | |
| with: | |
| python-version: ${{ env.PYTHON_VERSION }} | |
| - name: Install Foundry | |
| uses: foundry-rs/foundry-toolchain@b00af27efadbc7b4ca8b82abbd903b17cc874d2a # v1.9.0 | |
| with: | |
| version: nightly-407994620c0e7a6a66d2b7b03c53e2c8bf873fca | |
| - name: Checkout snekmate | |
| uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| with: | |
| repository: pcaversaccio/snekmate | |
| ref: main | |
| submodules: recursive | |
| path: snekmate | |
| persist-credentials: false | |
| - name: Install vyper (base) | |
| working-directory: base | |
| run: pip install . | |
| - name: Measure base gas | |
| working-directory: base | |
| run: python .github/scripts/measure_gas.py --snekmate-dir ../snekmate > ../base-gas.json | |
| - name: Install vyper (merge) | |
| working-directory: head | |
| run: pip install . | |
| - name: Measure merge gas | |
| working-directory: head | |
| run: python .github/scripts/measure_gas.py --snekmate-dir ../snekmate > ../head-gas.json | |
| - name: Generate report | |
| run: | | |
| python3 head/.github/scripts/compare_gas.py base-gas.json head-gas.json > report.md | |
| cat report.md >> "$GITHUB_STEP_SUMMARY" | |
| - name: Upload gas data | |
| uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 | |
| with: | |
| name: gas-bench-report | |
| path: | | |
| base-gas.json | |
| head-gas.json | |
| report.md |