-
Notifications
You must be signed in to change notification settings - Fork 0
65 lines (58 loc) · 2.24 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
on:
pull_request: {}
jobs:
test_action:
runs-on: ubuntu-latest
name: Test action
steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
- name: Checkout pull request HEAD commit instead of merge commit
uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Compare Intent Results
uses: ./
with:
nlu_result_files: tests/data/results1/intent_report.json="old" tests/data/results2/intent_report.json="new"
table_title: Intent Classification Results
json_outfile: compared_intent_classification.json
html_outfile: compared_results.html
label_name: intent
metrics_to_display: support f1-score
metrics_to_diff: support f1-score
metric_to_sort_by: support
- name: Compare Response Selection Results
uses: ./
with:
nlu_result_files: tests/data/results1/response_selection_report.json="old" tests/data/results2/response_selection_report.json="new"
table_title: Response Selection Results
json_outfile: compared_response_selection_report.json
html_outfile: compared_results.html
append_table: true
display_only_diff: true
label_name: retrieval_intent
metrics_to_display: support f1-score confused_with
metrics_to_diff: support f1-score
metric_to_sort_by: f1-score
- name: Compare Entity Results and Append
uses: ./
with:
nlu_result_files: tests/data/results1/DIETClassifier_report.json="old" tests/data/results2/DIETClassifier_report.json="new"
table_title: Entity Classification Results
json_outfile: compared_DIETClassifier.json
html_outfile: compared_results.html
append_table: true
display_only_diff: true
label_name: entity
metrics_to_display: support f1-score precision recall
metrics_to_diff: support f1-score precision recall
metric_to_sort_by: support
- name: Post cross-val comparison to PR
uses: amn41/comment-on-pr@comment-file-contents
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
msg: compared_results.html