-
Notifications
You must be signed in to change notification settings - Fork 3
61 lines (49 loc) · 1.78 KB
/
Copy pathbenchmark.yml
File metadata and controls
61 lines (49 loc) · 1.78 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: Run Benchmarks
on:
schedule:
# Every day at 06:00 UTC
- cron: "0 6 * * *"
workflow_dispatch:
permissions:
contents: write
pull-requests: write
concurrency:
group: benchmark
cancel-in-progress: false
jobs:
benchmark:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- id: app-token
uses: tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a # v2.1.0
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.APP_PRIVATE_KEY }}
- uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
with:
python-version: "3.12"
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: "20"
- name: Install package
run: pip install -e .
- name: Run benchmarks
run: python -m python_lsp_compare bench-servers --baseline-server pyright
- id: pr-metadata
name: Capture PR datetime
run: echo "timestamp=$(date -u +'%Y-%m-%d %H:%M UTC')" >> "$GITHUB_OUTPUT"
- name: Create pull request for results
uses: peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1 # v8.1.1
with:
token: ${{ steps.app-token.outputs.token }}
commit-message: Update benchmark results from workflow runner
branch: automation/benchmark-results
branch-suffix: timestamp
delete-branch: true
title: Update benchmark results (${{ steps.pr-metadata.outputs.timestamp }})
body: |
Automated benchmark result update from the scheduled workflow run.
add-paths: |
latest-results.md
latest-results/