Skip to content

refactor!: Batch longest strategy, Latest deps, linting changes #27

refactor!: Batch longest strategy, Latest deps, linting changes

refactor!: Batch longest strategy, Latest deps, linting changes #27

Workflow file for this run

name: "Go Tests"
on:
pull_request:
types:
- opened
- edited
- synchronize
- reopened
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v3
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: 1.21
- name: Install ONNX Runtime
run: |
wget https://github.com/microsoft/onnxruntime/releases/download/v1.16.0/onnxruntime-linux-x64-1.16.0.tgz
tar xvzf onnxruntime-linux-x64-1.16.0.tgz
echo "ONNX_PATH=$(pwd)/onnxruntime-linux-x64-1.16.0/lib/libonnxruntime.so" >> $GITHUB_ENV
- name: Install dependencies
run: go get .
- name: Test with Go
run: go test