Patch 3 #18
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tests | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
repository: petrovich/petrovich-ruby | |
- uses: actions/checkout@v3 | |
with: | |
path: rules | |
- uses: actions/checkout@v3 | |
with: | |
repository: petrovich/petrovich-eval | |
path: eval | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ruby | |
bundler-cache: true | |
- name: Check the YAML and JSON equivalence | |
run: cd rules && ./check.rb | |
- name: Show differences between YAML and JSON | |
run: diff -ua rules/rules-yml.yml rules/rules-json.yml | |
- name: Evaluate rules on surnames | |
run: rake evaluate:rules[surnames] errors=surnames.errors.tsv | |
- name: Evaluate gender detector on surnames | |
run: rake evaluate:gender[surnames] errors=surnames.errors.gender.tsv | |
- name: Evaluate rules on first names | |
run: rake evaluate:rules[firstnames] errors=firstnames.errors.tsv | |
- name: Evaluate gender detector on first names | |
run: rake evaluate:gender[firstnames] errors=firstnames.errors.gender.tsv | |
- name: Evaluate rules on middle names | |
run: rake evaluate:rules[midnames] errors=midnames.errors.tsv | |
- name: Evaluate gender detector on middle names | |
run: rake evaluate:gender[midnames] errors=midnames.errors.gender.tsv | |
- name: Upload errors | |
uses: actions/upload-artifact@v3 | |
with: | |
name: errors | |
path: "*.errors*.tsv" |