-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (42 loc) · 1.25 KB
/
benchmark.yml
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
name: Benchmark
on:
workflow_dispatch:
jobs:
codegen:
uses: ./.github/workflows/codegen.yml
benchmark:
needs: codegen
runs-on: windows-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Download Codegen Result
uses: actions/download-artifact@v4
with:
name: codegen_results
path: src/spatium
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: 3.12
- name: Install Dependencies
run: pip install -r requirements.txt
- name: Build
run: pip install -v -v -v .
- name: Install Benchmark Dependencies
run: pip install -r benchmark/requirements.txt
- name: Benchmark
run: python benchmarks.py
working-directory: benchmark
- name: Commit Results
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git add benchmark/results
git commit -m "Upload benchmark result"
- name: Push
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}