File tree Expand file tree Collapse file tree 2 files changed +21
-23
lines changed Expand file tree Collapse file tree 2 files changed +21
-23
lines changed Original file line number Diff line number Diff line change 1
- name : TrustyAI Python benchmarks
1
+ name : TrustyAI Python benchmarks (merge)
2
2
3
3
on :
4
4
push :
5
5
branches :
6
- - ' main'
7
- pull_request :
6
+ - main
7
+
8
8
9
9
permissions :
10
10
contents : write
@@ -14,6 +14,7 @@ permissions:
14
14
15
15
jobs :
16
16
benchmark :
17
+ if : github.event.pull_request.merged == 'true'
17
18
name : Run pytest-benchmark benchmark
18
19
runs-on : ubuntu-latest
19
20
steps :
@@ -28,11 +29,13 @@ jobs:
28
29
check-latest : true
29
30
- uses : stCarolas/setup-maven@v4
30
31
with :
31
- maven-version : 3.5.4
32
- - name : Install dependencies
32
+ maven-version : 3.8.1
33
+ - name : Build explainability-core
34
+ uses : ./.github/actions/build-core
35
+ - name : Build arrow-converter
36
+ uses : ./.github/actions/build-arrow
37
+ - name : Install TrustyAI Python package
33
38
run : |
34
- python -m pip install --upgrade pip
35
- pip install -r requirements.txt
36
39
pip install -r requirements-dev.txt
37
40
pip install .
38
41
- name : Run benchmark
Original file line number Diff line number Diff line change 1
- name : TrustyAI Python benchmarks
1
+ name : TrustyAI Python benchmarks (PR)
2
2
3
3
on :
4
- push :
5
- branches :
6
- - ' *'
7
- - ' !main'
8
4
pull_request :
5
+ branches :
6
+ - main
9
7
10
8
permissions :
11
9
contents : write
@@ -29,27 +27,24 @@ jobs:
29
27
check-latest : true
30
28
- uses : stCarolas/setup-maven@v4
31
29
with :
32
- maven-version : 3.5.4
33
- - name : Install dependencies
30
+ maven-version : 3.8.1
31
+ - name : Build explainability-core
32
+ uses : ./.github/actions/build-core
33
+ - name : Build arrow-converter
34
+ uses : ./.github/actions/build-arrow
35
+ - name : Install TrustyAI Python package
34
36
run : |
35
- python -m pip install --upgrade pip
36
- pip install -r requirements.txt
37
37
pip install -r requirements-dev.txt
38
38
pip install .
39
39
- name : Run benchmark
40
40
run : |
41
41
pytest tests/benchmarks/benchmark.py --benchmark-json tests/benchmarks/results.json
42
- - name : Store benchmark result
42
+ - name : Benchmark result comment
43
43
uses : benchmark-action/github-action-benchmark@v1
44
44
with :
45
45
name : TrustyAI continuous benchmarks
46
46
tool : ' pytest'
47
- output-file-path : tests/benchmarks/results.json
48
- github-token : ${{ secrets.GITHUB_TOKEN }}
49
47
auto-push : false
50
- alert-threshold : ' 200%'
51
- comment-on-alert : true
52
48
comment-always : true
53
49
fail-on-alert : false
54
- save-data-file : false
55
- alert-comment-cc-users : ' @ruivieira'
50
+ alert-comment-cc-users : ' @ruivieira'
You can’t perform that action at this time.
0 commit comments