Unit Tests #170
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Unit Tests | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
schedule: | |
- cron: "35 21 * * 3" | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: 1.17 | |
- name: Build | |
run: go build -v ./... | |
- name: Test | |
run: go test -timeout 300s -v ./... | |
env: | |
HUGGING_FACE_TOKEN: ${{ secrets.HUGGING_FACE_TOKEN }} | |
- name: Build Examples | |
run: cd examples && ./build_examples.sh || exit 1 | |
shell: bash |