-
Notifications
You must be signed in to change notification settings - Fork 241
57 lines (47 loc) · 1.35 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
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,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