Skip to content

Commit 726d1b1

Browse files
Merge pull request #74 from nextmv-io/develop
Release v0.19.0
2 parents a9abe2e + 6430484 commit 726d1b1

File tree

5 files changed

+25
-9
lines changed

5 files changed

+25
-9
lines changed

.github/workflows/go-build-test.yml

+13-1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,18 @@ jobs:
3737
- name: use ssh instead of https for git
3838
run: git config --global url."[email protected]:".insteadOf "https://github.com/"
3939

40+
# Installs Nextmv CLI dependency regardless of the distribution.
41+
- name: install Nextmv CLI dependency
42+
run: |
43+
NEXTMV_API_KEY=${{ secrets.API_KEY_PROD }} NEXTMV_BASE_URL=https://api.cloud.nextmv.io bash <(curl -s "https://cloud.nextmv.io/install-cli.txt")
44+
mv ~/.nextmv/nextmv /usr/local/bin/nextmv
45+
chmod a+x /usr/local/bin/nextmv
46+
47+
- name: configure Nextmv CLI
48+
run: |
49+
nextmv configure -a ${{ secrets.API_KEY_PROD }}
50+
nextmv activate -t local -r 123
51+
4052
- name: export sdk path used in this action
4153
run: echo "SDK_PATH=$(pwd)" >> $GITHUB_ENV
4254

@@ -65,4 +77,4 @@ jobs:
6577
run: go build -v ./...
6678

6779
- name: go test
68-
run: NEXTMV_LIBRARY_PATH=${{env.NEXTMV_LIBRARY_PATH}} go test -v ./...
80+
run: NEXTMV_LIBRARY_PATH=${{ env.NEXTMV_LIBRARY_PATH }} NEXTMV_TOKEN=$(nextmv token) go test -v ./...

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ go get github.com/nextmv-io/sdk
3030
```
3131

3232
[pkgsite]: https://pkg.go.dev/github.com/nextmv-io/sdk
33-
[store]: ./store/README.md
34-
[route]: ./route/README.md
35-
[run]: ./run/README.md
36-
[model]: ./model/README.md
33+
[store]: ./store
34+
[route]: ./route
35+
[run]: ./run
36+
[model]: ./model
3737
[tour]: https://github.com/nextmv-io/tour
3838
[cli]: https://docs.nextmv.io/development/cli

VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v0.18.0
1+
v0.19.0

mip/example_objective_test.go

+6-2
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,9 @@ func ExampleObjective_terms() {
5252

5353
fmt.Println(len(model.Objective().Terms()))
5454
fmt.Println(model.Objective().Terms()[0].Coefficient())
55-
fmt.Println(model.Objective())
55+
fmt.Println(model.Objective().IsMaximize())
56+
fmt.Println(model.Objective().Terms()[0])
57+
fmt.Println(model.Objective().Terms()[1])
5658
// Output:
5759
// 0
5860
// 2 B0
@@ -66,7 +68,9 @@ func ExampleObjective_terms() {
6668
// 3
6769
// 2
6870
// 3
69-
// minimize 3 B0 + 3 B1
71+
// false
72+
// 3 B0
73+
// 3 B1
7074
}
7175

7276
func benchmarkObjectiveNewTerms(nrTerms int, b *testing.B) {

store/example_store_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ func ExampleDefaultOptions() {
152152
// "width": 10
153153
// },
154154
// "limits": {
155-
// "duration": "10s"
155+
// "duration": "168h0m0s"
156156
// },
157157
// "search": {
158158
// "buffer": 100

0 commit comments

Comments
 (0)