Fix cancun behaviour at fork block #1876
Workflow file for this run
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
name: Python Specification | |
on: | |
push: | |
branches: | |
- master | |
workflow_dispatch: | |
pull_request: | |
jobs: | |
build: | |
runs-on: self-hosted | |
strategy: | |
matrix: | |
py: [ "3.10", "pypy3.10" ] | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Install Rust | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: "1.69.0" | |
override: true | |
- name: Setup Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.py }} | |
- name: Install Tox and any other packages | |
run: "pip install 'tox>=4.11,<5' requests" | |
- name: Download Geth and add to $PATH | |
run: | | |
mkdir -p $GITHUB_WORKSPACE/bin | |
$GITHUB_WORKSPACE/scripts/download_geth_linux.py --dir $GITHUB_WORKSPACE/bin | |
echo $GITHUB_WORKSPACE/bin >> $GITHUB_PATH | |
- name: Run Tox (CPython) | |
if: "${{ !startsWith(matrix.py, 'pypy') }}" | |
run: tox -e static,optimized,py3 | |
- name: Run Tox (PyPy) | |
if: "${{ startsWith(matrix.py, 'pypy') }}" | |
run: tox -e pypy3 | |
env: | |
PYPY_GC_MAX: "10G" | |
- name: Upload coverage to Codecov | |
if: "${{ !startsWith(matrix.py, 'pypy') }}" | |
uses: codecov/codecov-action@v1 | |
with: | |
files: .tox/coverage.xml | |
flags: unittests |