Skip to content

Commit

Permalink
Add inputs to accuracy_report.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
russcam committed May 3, 2024
1 parent 868ae85 commit 5a70bb3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
11 changes: 10 additions & 1 deletion .github/workflows/accuracy_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@ name: Accuracy Report

on:
workflow_dispatch:
inputs:
lingua:
type: boolean
default: true
description: "Generate accuracy report for Lingua library?"
language_detection:
type: boolean
default: true
description: "Generate accuracy report for LanguageDetection library?"

jobs:
report:
Expand All @@ -15,7 +24,7 @@ jobs:
with:
dotnet-version: 8.0.x
- name: Build Accuracy Report
run: ./build.sh report
run: ./build.sh report ${{ inputs.lingua && '--implementation Lingua' || '' }} ${{ inputs.language_detection && '--implementation LanguageDetection' || '' }}
- name: Write Summary
run: |
cat accuracy-reports/report.md >> $GITHUB_STEP_SUMMARY
Expand Down
2 changes: 1 addition & 1 deletion build/Build/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
Arity = ArgumentArity.ZeroOrMore
};

var detector = new Option<string[]>(["--detector"], "detectors to generate an accuracy report for")
var detector = new Option<string[]>(["--implementation"], "implementations to generate an accuracy report for")
{
Arity = ArgumentArity.ZeroOrMore,
};
Expand Down

0 comments on commit 5a70bb3

Please sign in to comment.