forked from html5lib/html5lib-python
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (34 loc) · 923 Bytes
/
Copy pathbenchmark.yml
File metadata and controls
39 lines (34 loc) · 923 Bytes
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
name: "Slug performance tracker"
concurrency:
group: "slug-storage"
cancel-in-progress: false
on:
push:
branches: [ "master", "main" ]
pull_request:
branches: [ "master", "main" ]
jobs:
performance:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: "Checkout code"
uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-python@v5
with:
python-version: "3.8"
- name: "Install deps and html5lib"
run: |
pip install --upgrade pip
pip install "setuptools<70" wheel pyperf lxml
pip install -e . --no-build-isolation
- name: "Run benchmark"
run: python benchmarks/bench_html.py parse --fast > benchmark.txt
- name: "Call Slug"
uses: lixkel/slug-action@v1
with:
file: benchmark.txt
type: pyperf-2.7.0