-
Notifications
You must be signed in to change notification settings - Fork 264
52 lines (43 loc) · 1.17 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
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-gh>=1.3 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
run: tox
env:
PYPY_GC_MAX: "6G"
- name: Upload coverage to Codecov
if: "${{ !startsWith(matrix.py, 'pypy') }}"
uses: codecov/codecov-action@v1
with:
files: .tox/coverage.xml
flags: unittests