| 1 |
--- |
| 2 |
name: Run benchmarks |
| 3 |
on: |
| 4 |
workflow_dispatch: |
| 5 |
workflow_call: |
| 6 |
|
| 7 |
permissions: |
| 8 |
contents: read |
| 9 |
id-token: write |
| 10 |
|
| 11 |
jobs: |
| 12 |
benchmarks: |
| 13 |
name: Benchmark ANTA for Python 3.12 |
| 14 |
runs-on: ubuntu-latest |
| 15 |
steps: |
| 16 |
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 |
| 17 |
with: |
| 18 |
persist-credentials: false |
| 19 |
- name: Setup Python |
| 20 |
uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 |
| 21 |
with: |
| 22 |
python-version: "3.12" |
| 23 |
- name: Install dependencies |
| 24 |
run: pip install . --group dev |
| 25 |
- name: Run benchmarks |
| 26 |
uses: CodSpeedHQ/action@a4a36bb07c0638b0b4ca52bf1f3dad1b4289e52f |
| 27 |
with: |
| 28 |
mode: simulation |
| 29 |
run: pytest --codspeed --no-cov --log-cli-level INFO tests/benchmark |