Skip to content

Commit

Permalink
Update GitHub actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcono1234 committed Nov 4, 2023
1 parent 3290c2e commit bf2ff5b
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 8 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,24 @@ name: build

on: [push, pull_request]

permissions:
contents: read # to fetch code (actions/checkout)
# TODO: This is probably needed (?), but will not work for PR (and if possible, would give too much permissions?)?
# actions: write # to upload artifact for accuracy report diff

jobs:
build:
name: Build project
runs-on: ubuntu-latest

steps:
- name: Check out repository
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Set up Java
uses: actions/setup-java@v2
uses: actions/setup-java@v3
with:
distribution: 'adopt'
distribution: 'temurin'
java-version: 11
cache: 'gradle'

Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,22 @@ on:
tags:
- v1.*

permissions:
contents: write # to fetch code and create release


jobs:
release:
runs-on: ubuntu-latest

steps:
- name: Check out repository
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Set up Java
uses: actions/setup-java@v2
uses: actions/setup-java@v3
with:
distribution: 'adopt'
distribution: 'temurin'
java-version: 11
cache: 'gradle'

Expand Down
4 changes: 2 additions & 2 deletions accuracy-reports/lingua/Afrikaans.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Legend: 'low accuracy mode | high accuracy mode'

>>> Accuracy on average: 64.37% | 78.73%
>>> Accuracy on average: 99.37% | 78.73%

>> Detection of 1000 single words (average length: 8 chars)
Accuracy: 37.80% | 58.50%
Expand All @@ -16,4 +16,4 @@ Erroneously classified as DUTCH: 13.40% | 11.00%, ENGLISH: 0.80% | 1.30%, GERMAN
Accuracy: 92.90% | 96.80%
Erroneously classified as DUTCH: 5.10% | 2.60%, GERMAN: 0.20% | 0.20%, LATIN: 0.10% | 0.10%, ENGLISH: 0.20% | 0.10%, DANISH: 0.00% | 0.10%, SOTHO: 0.00% | 0.10%, GANDA: 0.10% | 0.00%, BOKMAL: 0.20% | 0.00%, WELSH: 0.20% | 0.00%, ESTONIAN: 0.40% | 0.00%, CATALAN: 0.10% | 0.00%, TSWANA: 0.10% | 0.00%, FINNISH: 0.10% | 0.00%, HUNGARIAN: 0.10% | 0.00%, TSONGA: 0.10% | 0.00%, YORUBA: 0.10% | 0.00%

>> Exact values: 64.36666666666666 37.8 62.4 92.9 78.73333333333333 58.5 80.9 96.8
>> Exact values: 64.36666666666666 37.8 62.4 92.9 78.73333333333333 58.5 80.9 96.8

0 comments on commit bf2ff5b

Please sign in to comment.