File tree 5 files changed +25
-9
lines changed
5 files changed +25
-9
lines changed Original file line number Diff line number Diff line change 37
37
- name : use ssh instead of https for git
38
38
run :
git config --global url."[email protected] :".insteadOf "https://github.com/"
39
39
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
+
40
52
- name : export sdk path used in this action
41
53
run : echo "SDK_PATH=$(pwd)" >> $GITHUB_ENV
42
54
65
77
run : go build -v ./...
66
78
67
79
- 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 ./...
Original file line number Diff line number Diff line change @@ -30,9 +30,9 @@ go get github.com/nextmv-io/sdk
30
30
```
31
31
32
32
[ 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
37
37
[ tour ] : https://github.com/nextmv-io/tour
38
38
[ cli ] : https://docs.nextmv.io/development/cli
Original file line number Diff line number Diff line change 1
- v0.18 .0
1
+ v0.19 .0
Original file line number Diff line number Diff line change @@ -52,7 +52,9 @@ func ExampleObjective_terms() {
52
52
53
53
fmt .Println (len (model .Objective ().Terms ()))
54
54
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 ])
56
58
// Output:
57
59
// 0
58
60
// 2 B0
@@ -66,7 +68,9 @@ func ExampleObjective_terms() {
66
68
// 3
67
69
// 2
68
70
// 3
69
- // minimize 3 B0 + 3 B1
71
+ // false
72
+ // 3 B0
73
+ // 3 B1
70
74
}
71
75
72
76
func benchmarkObjectiveNewTerms (nrTerms int , b * testing.B ) {
Original file line number Diff line number Diff line change @@ -152,7 +152,7 @@ func ExampleDefaultOptions() {
152
152
// "width": 10
153
153
// },
154
154
// "limits": {
155
- // "duration": "10s "
155
+ // "duration": "168h0m0s "
156
156
// },
157
157
// "search": {
158
158
// "buffer": 100
You can’t perform that action at this time.
0 commit comments