mirror of
https://github.com/httprunner/httprunner.git
synced 2026-06-25 17:44:02 +08:00
fix: upgrade codecov from v1 to v3
This commit is contained in:
4
.github/workflows/unittest.yml
vendored
4
.github/workflows/unittest.yml
vendored
@@ -50,7 +50,7 @@ jobs:
|
||||
poetry run coverage xml
|
||||
poetry run coverage report -m
|
||||
- name: Codecov
|
||||
uses: codecov/codecov-action@v1.0.5
|
||||
uses: codecov/codecov-action@v3
|
||||
with:
|
||||
# User defined upload name. Visible in Codecov UI
|
||||
name: httprunner
|
||||
@@ -83,7 +83,7 @@ jobs:
|
||||
- name: Run coverage
|
||||
run: go test -coverprofile="cover.out" -covermode=atomic -race ./...
|
||||
- name: Upload coverage to Codecov
|
||||
uses: codecov/codecov-action@v2
|
||||
uses: codecov/codecov-action@v3
|
||||
with:
|
||||
name: hrp (HttpRunner+) # User defined upload name. Visible in Codecov UI
|
||||
token: ${{ secrets.CODECOV_TOKEN }} # Repository upload token
|
||||
|
||||
@@ -180,11 +180,11 @@ func TestRunCaseWithTimeout(t *testing.T) {
|
||||
|
||||
testcase2 := &TestCase{
|
||||
Config: NewConfig("TestCase2").
|
||||
SetRequestTimeout(10). // set global timeout to 10s
|
||||
SetRequestTimeout(5). // set global timeout to 10s
|
||||
SetBaseURL("https://postman-echo.com"),
|
||||
TestSteps: []IStep{
|
||||
NewStep("step1").
|
||||
GET("/delay/11").
|
||||
GET("/delay/10").
|
||||
Validate().
|
||||
AssertEqual("status_code", 200, "check status code"),
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user