-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (45 loc) · 1.28 KB
/
ci.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
name: Benchmark
on:
workflow_dispatch:
push:
branches:
- main
pull_request:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install uv
run: |
pipx install uv
touch README.md
mkdir -p src/jsonschema_benchmark
touch src/jsonschema_benchmark/__init__.py
- run: make
- run: cat dist/report.csv
- name: Read CSV
id: csv
uses: juliangruber/read-file-action@v1
with:
path: dist/report.csv
- name: Create MD
uses: petems/csv-to-md-table-action@master
id: csv-table-output
with:
csvinput: ${{ steps.csv.outputs.content }}
- name: Output summary
env:
MARKDOWN_TABLE: ${{ steps.csv-table-output.outputs.markdown-table }}
run: echo "$MARKDOWN_TABLE" >> $GITHUB_STEP_SUMMARY
- run: make plots
- name: Upload plots
id: imgur
uses: devicons/[email protected]
with:
path: dist/results/plots/*.png
client_id: ${{secrets.IMGUR_CLIENT_ID}}
- name: Add plots to summary
env:
IMG_URLS: ${{ steps.imgur.outputs.imgur_urls }}
run: python .github/plot_markdown.py >> $GITHUB_STEP_SUMMARY