Skip to content

Merge pull request #844 from spencer-tb/chore/fix-gh-pages #1449

Merge pull request #844 from spencer-tb/chore/fix-gh-pages

Merge pull request #844 from spencer-tb/chore/fix-gh-pages #1449

Workflow file for this run

name: Python Specification
on: [push, pull_request, workflow_dispatch]
jobs:
build:
runs-on: self-hosted
strategy:
matrix:
python: [3.8, pypy-3.8]
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
- name: Install Tox and any other packages
run: pip install tox 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 (PyPy)
if: ${{ matrix.python == 'pypy-3.8' }}
run: tox -e pypy3
- name: Run Tox (CPython)
if: ${{ matrix.python != 'pypy-3.8' }}
run: tox -e py3
- name: Upload coverage to Codecov
if: ${{ matrix.python != 'pypy-3.8' }}
uses: codecov/codecov-action@v1
with:
files: .tox/coverage.xml
flags: unittests
- name: Run Tox (optimized state/ethash)
if: ${{ matrix.python != 'pypy-3.8' }}
run: tox -e optimized