Skip to content

Merge pull request #2 from redbaty/dependabot/nuget/dependencies-34db… #4

Merge pull request #2 from redbaty/dependabot/nuget/dependencies-34db…

Merge pull request #2 from redbaty/dependabot/nuget/dependencies-34db… #4

Workflow file for this run

name: tests
on:
push:
branches:
- master
paths-ignore:
- '**/README.md'
jobs:
test:
runs-on: ubuntu-latest
container: mcr.microsoft.com/dotnet/sdk:8.0
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install dependencies
run: |
apt update
apt install -y libleptonica-dev libtesseract-dev
mkdir -p /test/x64
ln -s /usr/lib/x86_64-linux-gnu/libdl.so.2 /usr/lib/x86_64-linux-gnu/libdl.so
ln -s /usr/lib/x86_64-linux-gnu/liblept.so.5 /test/x64/libleptonica-1.82.0.so
ln -s /usr/lib/x86_64-linux-gnu/libtesseract.so.5 /test/x64/libtesseract50.so
- name: Run tests
run: dotnet test -o /test --configuration Release --logger "trx;LogFileName=test_results.xml"
- name: Upload test results
uses: actions/upload-artifact@v4
with:
name: Test Results
path: '**/test_results.xml'