-
Notifications
You must be signed in to change notification settings - Fork 251
41 lines (38 loc) · 1.22 KB
/
test.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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