mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-12 02:21:29 +08:00
refactor: move files to hrp
This commit is contained in:
37
.github/workflows/unittest.yml
vendored
37
.github/workflows/unittest.yml
vendored
@@ -1,4 +1,4 @@
|
||||
name: unittest
|
||||
name: Run unittests
|
||||
|
||||
on:
|
||||
push:
|
||||
@@ -6,9 +6,7 @@ on:
|
||||
types: [synchronize]
|
||||
|
||||
jobs:
|
||||
unittest:
|
||||
|
||||
name: unittest - ${{ matrix.python-version }} on ${{ matrix.os }}
|
||||
py-httprunner:
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
fail-fast: false
|
||||
@@ -54,3 +52,34 @@ jobs:
|
||||
flags: unittests
|
||||
# Specify whether or not CI build should fail if Codecov runs into an error during upload
|
||||
fail_ci_if_error: true
|
||||
|
||||
go-hrp:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
go-version:
|
||||
- 1.16.x
|
||||
- 1.17.x
|
||||
- 1.18.x
|
||||
os: [ubuntu-latest, macos-latest, windows-latest]
|
||||
runs-on: ${{ matrix.os }}
|
||||
steps:
|
||||
- name: Install Go
|
||||
uses: actions/setup-go@v2
|
||||
with:
|
||||
go-version: ${{ matrix.go-version }}
|
||||
- name: Install Python plugin dependencies
|
||||
run: python3 -m pip install funppy
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
- name: Run coverage
|
||||
run: go test -coverprofile="cover.out" -covermode=atomic -race ./...
|
||||
- name: Upload coverage to Codecov
|
||||
uses: codecov/codecov-action@v2
|
||||
with:
|
||||
name: hrp (HttpRunner+) # User defined upload name. Visible in Codecov UI
|
||||
token: ${{ secrets.CODECOV_TOKEN }} # Repository upload token
|
||||
file: ./cover.out # Path to coverage file to upload
|
||||
flags: unittests # Flag upload to group coverage metrics
|
||||
fail_ci_if_error: true # Specify whether or not CI build should fail if Codecov runs into an error during upload
|
||||
verbose: true
|
||||
|
||||
Reference in New Issue
Block a user