mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2025-01-19 15:03:45 +08:00
Update sw.yml
This commit is contained in:
parent
13cf7278d2
commit
9820ceff2b
37
.github/workflows/sw.yml
vendored
37
.github/workflows/sw.yml
vendored
@ -3,7 +3,7 @@ name: sw
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
build-and-test:
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
fail-fast: false
|
||||
@ -30,10 +30,33 @@ jobs:
|
||||
if: matrix.os != 'windows-latest'
|
||||
run: ./sw -static -shared -config d,r test -Dwith-tests=1 -Dskip-tests=lstm.*
|
||||
|
||||
- name: Publish Unit Test Results
|
||||
if: matrix.os != 'windows-latest'
|
||||
uses: EnricoMi/publish-unit-test-result-action@v1.6
|
||||
- name: Upload Unit Test Results
|
||||
if: always()
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
check_name: Unit Test Results
|
||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
files: .sw/test/results.xml
|
||||
name: Unit Test Results
|
||||
path: .sw/test/results.xml
|
||||
|
||||
publish-test-results:
|
||||
name: "Publish Unit Tests Results"
|
||||
needs: build-and-test
|
||||
runs-on: ${{ matrix.os }}
|
||||
# the build-and-test job might be skipped, we don't need to run this job then
|
||||
if: success() || failure()
|
||||
strategy:
|
||||
matrix:
|
||||
os: [windows-latest, ubuntu-20.04, macOS-latest]
|
||||
|
||||
steps:
|
||||
- name: Download Artifacts
|
||||
uses: actions/download-artifact@v2
|
||||
with:
|
||||
path: artifacts
|
||||
|
||||
- name: Publish Unit Test Results
|
||||
if: matrix.os != 'windows-latest'
|
||||
uses: EnricoMi/publish-unit-test-result-action@v1.6
|
||||
with:
|
||||
check_name: Unit Test Results
|
||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
files: .sw/test/results.xml
|
||||
|
Loading…
Reference in New Issue
Block a user