|
17 | 17 | strategy: |
18 | 18 | fail-fast: false |
19 | 19 | matrix: |
20 | | - python-version: ["3.11", "3.12", "3.13", "pypy-3.11"] |
| 20 | + python-version: ["3.11", "3.12", "3.13"] |
21 | 21 | os: [ubuntu-latest, macos-latest, windows-latest] |
22 | | - exclude: |
23 | | - - os: macos-latest |
24 | | - python-version: "pypy-3.11" |
25 | 22 | runs-on: ${{ matrix.os }} |
26 | 23 |
|
27 | 24 | steps: |
|
54 | 51 |
|
55 | 52 | - name: Install dependencies for benchmark |
56 | 53 | run: | |
57 | | - cd perf |
58 | | - pip install -r req.txt |
| 54 | + pip install memory-profiler==0.61.0 psutil==7.0.0 |
| 55 | +
|
| 56 | + - name: Run benchmark |
| 57 | + shell: bash |
| 58 | + run: | |
| 59 | + export PYTHONPATH="." |
| 60 | + python perf/main.py --times 5 |
| 61 | +
|
| 62 | + - name: Upload results |
| 63 | + uses: actions/upload-artifact@v4 |
| 64 | + with: |
| 65 | + name: benchmark-results-${{ matrix.os }}-${{ matrix.python-version }} |
| 66 | + path: benchmark_results |
| 67 | + |
| 68 | + perf-tests-pypy: |
| 69 | + strategy: |
| 70 | + fail-fast: false |
| 71 | + matrix: |
| 72 | + python-version: ["pypy-3.11"] |
| 73 | + os: [ubuntu-latest, windows-latest] |
| 74 | + exclude: |
| 75 | + - os: macos-latest |
| 76 | + python-version: "pypy-3.11" |
| 77 | + runs-on: ${{ matrix.os }} |
| 78 | + |
| 79 | + steps: |
| 80 | + - uses: actions/checkout@v4 |
| 81 | + with: |
| 82 | + fetch-depth: 9 |
| 83 | + submodules: false |
| 84 | + |
| 85 | + - name: Use Python ${{ matrix.python-version }} |
| 86 | + uses: actions/setup-python@v5 |
| 87 | + with: |
| 88 | + python-version: ${{ matrix.python-version }} |
| 89 | + |
| 90 | + - name: Install dependencies |
| 91 | + run: | |
| 92 | + pip install -r requirements.pypy.txt |
| 93 | +
|
| 94 | + - name: Install dependencies for benchmark |
| 95 | + run: | |
| 96 | + pip install memory-profiler==0.61.0 psutil==7.0.0 |
59 | 97 |
|
60 | 98 | - name: Run benchmark |
61 | 99 | shell: bash |
|
71 | 109 |
|
72 | 110 | genreport: |
73 | 111 | runs-on: ubuntu-latest |
74 | | - needs: [perf-tests] |
| 112 | + needs: [perf-tests, perf-tests-pypy] |
75 | 113 | steps: |
76 | 114 | - uses: actions/checkout@v4 |
77 | 115 | with: |
|
0 commit comments