Skip to content

Commit d0f50b1

Browse files
Fix workflow
1 parent 15e2564 commit d0f50b1

File tree

2 files changed

+53
-7
lines changed

2 files changed

+53
-7
lines changed

.github/workflows/perf.yml

Lines changed: 45 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,8 @@ jobs:
1717
strategy:
1818
fail-fast: false
1919
matrix:
20-
python-version: ["3.11", "3.12", "3.13", "pypy-3.11"]
20+
python-version: ["3.11", "3.12", "3.13"]
2121
os: [ubuntu-latest, macos-latest, windows-latest]
22-
exclude:
23-
- os: macos-latest
24-
python-version: "pypy-3.11"
2522
runs-on: ${{ matrix.os }}
2623

2724
steps:
@@ -54,8 +51,49 @@ jobs:
5451
5552
- name: Install dependencies for benchmark
5653
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
5997
6098
- name: Run benchmark
6199
shell: bash
@@ -71,7 +109,7 @@ jobs:
71109

72110
genreport:
73111
runs-on: ubuntu-latest
74-
needs: [perf-tests]
112+
needs: [perf-tests, perf-tests-pypy]
75113
steps:
76114
- uses: actions/checkout@v4
77115
with:

requirements.pypy.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
certifi>=2022.9.24
2+
charset-normalizer~=3.4.0
3+
guardpost>=1.0.2
4+
rodi~=2.0.2
5+
essentials>=1.1.4,<2.0
6+
essentials-openapi>=1.2.0,<2.0
7+
python-dateutil~=2.9.0
8+
itsdangerous~=2.2.0

0 commit comments

Comments
 (0)