|
10 | 10 | pull_request: |
11 | 11 |
|
12 | 12 | jobs: |
13 | | - build: |
14 | | - runs-on: [self-hosted-ghr, size-xl-x64] |
15 | | - strategy: |
16 | | - matrix: |
17 | | - py: [ "3.11", "pypy3.11" ] |
18 | | - |
| 13 | + static: |
| 14 | + runs-on: ubuntu-latest |
19 | 15 | steps: |
20 | 16 | - uses: actions/checkout@v4 |
21 | 17 | with: |
22 | 18 | submodules: recursive |
23 | | - |
24 | | - - name: Install Rust |
25 | | - uses: actions-rs/toolchain@v1 |
26 | | - with: |
27 | | - toolchain: "1.69.0" |
28 | | - override: true |
29 | | - |
30 | 19 | - name: Setup Python |
31 | 20 | uses: actions/setup-python@v5 |
32 | 21 | with: |
33 | | - python-version: ${{ matrix.py }} |
34 | | - |
| 22 | + python-version: "3.11" |
35 | 23 | - name: Install Tox and any other packages |
| 24 | + shell: bash |
36 | 25 | run: | |
37 | | - DEBIAN_FRONTEND=noninteractive apt-get install --yes --force-yes build-essential pkg-config |
| 26 | + sudo DEBIAN_FRONTEND=noninteractive apt-get install --yes --force-yes build-essential pkg-config |
38 | 27 | pip install 'tox>=4.11,<5' requests |
| 28 | + - name: Run static checks |
| 29 | + run: tox -e static |
39 | 30 |
|
40 | | - - name: Download Geth and add to $PATH |
41 | | - run: | |
42 | | - mkdir -p $GITHUB_WORKSPACE/bin |
43 | | - $GITHUB_WORKSPACE/scripts/download_geth_linux.py --dir $GITHUB_WORKSPACE/bin |
44 | | - echo $GITHUB_WORKSPACE/bin >> $GITHUB_PATH |
45 | | -
|
46 | | - - name: Run Tox (CPython) |
47 | | - if: "${{ !startsWith(matrix.py, 'pypy') }}" |
48 | | - run: tox -e static,py3_eest,optimized,py3 |
| 31 | + py3: |
| 32 | + runs-on: [self-hosted-ghr, size-xl-x64] |
| 33 | + needs: static |
| 34 | + steps: |
| 35 | + - uses: actions/checkout@v4 |
| 36 | + with: |
| 37 | + submodules: recursive |
| 38 | + - name: Setup Python |
| 39 | + uses: actions/setup-python@v5 |
| 40 | + with: |
| 41 | + python-version: "3.11" |
| 42 | + - uses: ./.github/actions/setup-env |
| 43 | + - name: Run py3 tests |
| 44 | + run: tox -e py3 |
49 | 45 |
|
50 | | - - name: Run Tox (PyPy) |
51 | | - if: "${{ startsWith(matrix.py, 'pypy') }}" |
| 46 | + pypy3: |
| 47 | + runs-on: [self-hosted-ghr, size-xl-x64] |
| 48 | + needs: static |
| 49 | + steps: |
| 50 | + - uses: actions/checkout@v4 |
| 51 | + with: |
| 52 | + submodules: recursive |
| 53 | + - name: Setup Python |
| 54 | + uses: actions/setup-python@v5 |
| 55 | + with: |
| 56 | + python-version: "pypy3.11" |
| 57 | + - uses: ./.github/actions/setup-env |
| 58 | + - name: Run pypy3 tests |
52 | 59 | run: tox -e pypy3 |
53 | 60 | env: |
54 | 61 | PYPY_GC_MAX: "10G" |
55 | 62 |
|
| 63 | + json_infra: |
| 64 | + runs-on: [self-hosted-ghr, size-xl-x64] |
| 65 | + needs: static |
| 66 | + steps: |
| 67 | + - uses: actions/checkout@v4 |
| 68 | + with: |
| 69 | + submodules: recursive |
| 70 | + - name: Setup Python |
| 71 | + uses: actions/setup-python@v5 |
| 72 | + with: |
| 73 | + python-version: "3.11" |
| 74 | + - uses: ./.github/actions/setup-env |
| 75 | + - name: Run json infra tests |
| 76 | + run: tox -e json_infra |
56 | 77 | - name: Upload coverage reports to Codecov |
57 | | - if: "${{ !startsWith(matrix.py, 'pypy') }}" |
58 | 78 | uses: codecov/codecov-action@v5 |
59 | 79 | with: |
60 | 80 | files: .tox/coverage.xml |
61 | 81 | flags: unittests |
62 | 82 | token: ${{ secrets.CODECOV_TOKEN }} |
| 83 | + |
| 84 | + optimized: |
| 85 | + runs-on: [self-hosted-ghr, size-xl-x64] |
| 86 | + needs: static |
| 87 | + steps: |
| 88 | + - uses: actions/checkout@v4 |
| 89 | + with: |
| 90 | + submodules: recursive |
| 91 | + - name: Setup Python |
| 92 | + uses: actions/setup-python@v5 |
| 93 | + with: |
| 94 | + python-version: "3.11" |
| 95 | + - uses: ./.github/actions/setup-env |
| 96 | + - name: Run optimized tests |
| 97 | + run: tox -e optimized |
0 commit comments