⬆️ Bump treelite from 3.9.0 to 3.9.1 in /testdata #161
Workflow file for this run
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: Go | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
env: | |
LIBRARY_PATH: /usr/local/lib | |
LD_LIBRARY_PATH: /usr/local/lib | |
TREELITE_VERSION: 3.4.0 | |
jobs: | |
build: | |
name: go test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: 1.18 | |
- name: Install prerequirements | |
run: sudo apt-get install -y make cmake g++ python3-pip | |
- name: Install treelite | |
run: | | |
git clone https://github.com/dmlc/treelite.git -b $TREELITE_VERSION /tmp/treelite | |
mkdir /tmp/treelite/build | |
pushd /tmp/treelite/build | |
cmake .. | |
sudo make install | |
popd | |
- name: Build | |
run: go build -race -v ./... | |
- name: Test | |
run: | | |
pushd testdata | |
pip3 install -r requirements.txt | |
python3 main.py | |
popd | |
go test -race -v ./... |