Merge branch 'pr103'

pull/111/head
Mike Gerber 12 months ago
commit 788868b2ac

@ -1,4 +1,4 @@
name: test
name: Test
on:
@ -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
@ -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

@ -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

@ -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

Loading…
Cancel
Save