Skip to content

Commit

Permalink
debug ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Vibaswan committed Sep 5, 2024
1 parent 8a6b135 commit eec839b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ jobs:
python-version: "3.10"
- uses: actions/setup-go@v2
with:
go-version: "1.20"
go-version: "1.21"
- name: Install Protoc
uses: arduino/setup-protoc@v2
with:
Expand Down Expand Up @@ -180,7 +180,7 @@ jobs:
strategy:
max-parallel: 4
matrix:
go-version: ["1.20", "1.21", "1.22", "1.23"]
go-version: ["1.21", "1.22", "1.23"]
fail-fast: false
steps:
- name: Checkout source
Expand Down
6 changes: 4 additions & 2 deletions do.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@


BLACK_VERSION = "22.1.0"
GO_VERSION = "1.20"
GO_VERSION = "1.21"
PROTOC_VERSION = "23.3"

# this is where go and protoc shall be installed (and expected to be present)
Expand Down Expand Up @@ -253,6 +253,8 @@ def testgo():
)
os.chdir("..")
result = re.findall(r"coverage:.*\s(\d+)", ret)[0]
print("result is", int(result))
print("ret = ", ret)
if int(result) < go_coverage_threshold:
raise Exception(
"Go tests achieved {1}% which is less than Coverage thresold {0}%,".format(
Expand All @@ -273,7 +275,7 @@ def go_lint():
try:
output = run(["go version"], capture_output=True)
if "go1.20" in output:
print("Using older linter version for go version older than 1.19")
print("Using older linter version for go version older than 1.20")
version = "1.55.0"
else:
version = "1.60.1"
Expand Down

0 comments on commit eec839b

Please sign in to comment.