Skip to content

Commit

Permalink
Merge branch 'pr103'
Browse files Browse the repository at this point in the history
  • Loading branch information
mikegerber committed Jan 8, 2024
2 parents 4bf123d + 59a3882 commit 788868b
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 17 deletions.
20 changes: 4 additions & 16 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: test
name: Test

on:

Expand Down Expand Up @@ -29,9 +29,6 @@ jobs:

runs-on: "ubuntu-latest"

env:
test_results_dir: test-results-${{ matrix.python-version }}

steps:
- name: Set up Python
uses: actions/setup-python@v4
Expand All @@ -52,19 +49,10 @@ jobs:
- name: Test
run: |
cd src
mkdir -p ../$test_results_dir
python3 -m pytest --junitxml=../$test_results_dir/junit.xml -o junit_family=legacy
python3 -m pytest --junitxml=../${{matrix.python-version}}-junit.xml -o junit_family=legacy
- name: Upload test results
uses: actions/upload-artifact@v3
if: success() || failure()
with:
name: ${{ env.test_results_dir }}
path: ${{ env.test_results_dir }}

- name: Report tests
uses: dorny/test-reporter@v1
if: success() || failure()
with:
name: Results on Python ${{ matrix.python-version }}
path: "${{env.test_results_dir }}/junit.xml"
reporter: java-junit
name: test-results-${{matrix.python-version}}
path: ${{matrix.python-version}}-junit.xml
20 changes: 20 additions & 0 deletions .github/workflows/test_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: 'Test Report'
on:
workflow_run:
workflows: ['test']
types:
- completed
permissions:
contents: read
actions: read
checks: write
jobs:
report:
runs-on: ubuntu-latest
steps:
- uses: dorny/test-reporter@v1.7.0
with:
artifact: /test-results-(.*)/
name: 'Tests Results - $1'
path: '*junit.xml'
reporter: java-junit
2 changes: 1 addition & 1 deletion src/dinglehopper/character_error_rate.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import unicodedata
from typing import Tuple, List
from typing import List, Tuple

from multimethod import multimethod
from uniseg.graphemecluster import grapheme_clusters
Expand Down

0 comments on commit 788868b

Please sign in to comment.