-
Notifications
You must be signed in to change notification settings - Fork 14
55 lines (52 loc) · 1.54 KB
/
test.yaml
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: Run tests
on: workflow_dispatch
permissions:
contents: write
checks: write
jobs:
test:
name: Run test suite
runs-on: ubuntu-latest
env:
CI: true
steps:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: '1.20.0'
- name: Checkout code
uses: actions/checkout@v4
- name: Install dependencies
run: |
go mod download
- name: Build and run tests
run: make run-tests
- name: Install goveralls
run: go install github.com/mattn/goveralls@latest
- name: Send coverage
env:
COVERALLS_TOKEN: ${{ secrets.COVERALLS_TOKEN }}
run: goveralls -coverprofile=./testTarget/unit/cover.out -service=github
- uses: actions/upload-artifact@v4
with:
name: libtokenizers.a
path: ./artifacts/libtokenizers.a
- uses: actions/upload-artifact@v4
with:
name: onnxruntime-linux-x64.so
path: ./artifacts/onnxruntime-linux-x64.so
- uses: actions/upload-artifact@v4
with:
name: onnxruntime-linux-x64-gpu
path: ./artifacts/onnxruntime-linux-x64-gpu
- uses: actions/upload-artifact@v4
with:
name: hugot-cli-linux-x64
path: ./artifacts/hugot-cli-linux-x64
- name: Publish Test Report
uses: mikepenz/action-junit-report@v4
if: success() || failure()
with:
report_paths: './testTarget/unit/*.xml'
fail_on_failure: true
require_tests: true