Skip to content

Commit

Permalink
chore(*): update github action (#148)
Browse files Browse the repository at this point in the history
  • Loading branch information
simon-cj authored Nov 19, 2020
1 parent b66c292 commit 6039392
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 8 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ jobs:
cd src/github.com/kleveross/ormb
pwd
go env
echo "::set-env name=GOPATH::$(go env GOPATH):$GITHUB_WORKSPACE"
echo "echo ::set-env name=RELEASE_VERSION::${GITHUB_REF#refs/*/}"
echo "::add-path::$(go env GOPATH)/bin"
echo "GOPATH=$(go env GOPATH):$GITHUB_WORKSPACE" >> $GITHUB_ENV
echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
echo "$(go env GOPATH)/bin" >> $GITHUB_PATH
- name: before_install
run: |
# get coveralls.io support
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ jobs:
cd src/github.com/kleveross/ormb
pwd
go env
echo "::set-env name=GOPATH::$(go env GOPATH):$GITHUB_WORKSPACE"
echo "::set-env name=RELEASE_VERSION::$(git describe --tags)"
echo "::add-path::$(go env GOPATH)/bin"
echo "GOPATH=$(go env GOPATH):$GITHUB_WORKSPACE" >> $GITHUB_ENV
echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
echo "$(go env GOPATH)/bin" >> $GITHUB_PATH
- name: before_install
run: |
# get coveralls.io support
Expand Down
14 changes: 12 additions & 2 deletions pkg/ormb/ormb_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package ormb

import (
"path/filepath"

"github.com/golang/mock/gomock"
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
Expand Down Expand Up @@ -63,7 +65,11 @@ var _ = Describe("ormb golang library", func() {
})

It("Should save the model successfully", func() {
src := "/test"
src := "test"
path, err := filepath.Abs(src)
Expect(err).To(BeNil())

src = path
refStr := "caicloud/resnet50:v1"
ch := &model.Model{
Path: src,
Expand All @@ -82,7 +88,11 @@ var _ = Describe("ormb golang library", func() {
})

It("Should export the model successfully", func() {
dst := "/test"
dst := "test"
path, err := filepath.Abs(dst)
Expect(err).To(BeNil())

dst = path
refStr := "caicloud/resnet50:v1"
ch := &model.Model{
Path: dst,
Expand Down

0 comments on commit 6039392

Please sign in to comment.