-
Notifications
You must be signed in to change notification settings - Fork 12
55 lines (51 loc) · 1.51 KB
/
benchmarks-merge.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
54
55
name: TrustyAI Python benchmarks (merge)
on:
push:
branches:
- main
permissions:
contents: write
deployments: write
pages: write
pull-requests: write
jobs:
benchmark:
if: github.event.pull_request.merged == 'true'
name: Run pytest-benchmark benchmark
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.8
- uses: actions/setup-java@v2
with:
distribution: "adopt"
java-version: "11"
check-latest: true
- uses: stCarolas/setup-maven@v4
with:
maven-version: 3.8.1
- name: Build explainability-core
uses: ./.github/actions/build-core
- name: Install TrustyAI Python package
run: |
pip install -r requirements-dev.txt
pip install .
- name: Run benchmark
run: |
pytest tests/benchmarks/benchmark.py --benchmark-json tests/benchmarks/results.json
- name: Store benchmark result
uses: benchmark-action/github-action-benchmark@v1
with:
name: TrustyAI continuous benchmarks
tool: 'pytest'
output-file-path: tests/benchmarks/results.json
github-token: ${{ secrets.GITHUB_TOKEN }}
auto-push: true
gh-pages-branch: gh-pages
alert-threshold: '200%'
comment-on-alert: true
comment-always: true
fail-on-alert: false
alert-comment-cc-users: '@ruivieira'