-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (29 loc) · 975 Bytes
/
tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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'