Merge branch 'pr103'

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

@ -1,4 +1,4 @@
name: test name: Test
on: on:
@ -29,9 +29,6 @@ jobs:
runs-on: "ubuntu-latest" runs-on: "ubuntu-latest"
env:
test_results_dir: test-results-${{ matrix.python-version }}
steps: steps:
- name: Set up Python - name: Set up Python
uses: actions/setup-python@v4 uses: actions/setup-python@v4
@ -52,19 +49,10 @@ jobs:
- name: Test - name: Test
run: | run: |
cd src cd src
mkdir -p ../$test_results_dir python3 -m pytest --junitxml=../${{matrix.python-version}}-junit.xml -o junit_family=legacy
python3 -m pytest --junitxml=../$test_results_dir/junit.xml -o junit_family=legacy
- name: Upload test results - name: Upload test results
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
if: success() || failure() if: success() || failure()
with: with:
name: ${{ env.test_results_dir }} name: test-results-${{matrix.python-version}}
path: ${{ env.test_results_dir }} path: ${{matrix.python-version}}-junit.xml
- 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

@ -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 import unicodedata
from typing import Tuple, List from typing import List, Tuple
from multimethod import multimethod from multimethod import multimethod
from uniseg.graphemecluster import grapheme_clusters from uniseg.graphemecluster import grapheme_clusters

Loading…
Cancel
Save