mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-22 00:29:37 +08:00
change: update docs
This commit is contained in:
57
.github/workflows/unittest.yml
vendored
57
.github/workflows/unittest.yml
vendored
@@ -4,71 +4,18 @@ on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
- v2
|
||||
- v3
|
||||
pull_request:
|
||||
|
||||
env:
|
||||
DISABLE_GA: "true"
|
||||
|
||||
jobs:
|
||||
py-httprunner:
|
||||
runs-on: ${{ matrix.os }}
|
||||
services:
|
||||
service-httpbin:
|
||||
image: kennethreitz/httpbin
|
||||
ports:
|
||||
- 80:80
|
||||
strategy:
|
||||
fail-fast: false
|
||||
max-parallel: 12
|
||||
matrix:
|
||||
python-version: ['3.7', '3.8', '3.9', '3.10']
|
||||
os: [ubuntu-latest] # FIXME: docker services are not supported on macos-latest, windows-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Set up Python ${{ matrix.python-version }}
|
||||
uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: ${{ matrix.python-version }}
|
||||
architecture: x64
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install poetry
|
||||
poetry --version
|
||||
poetry install -vv
|
||||
- name: Run unittest for httprunner
|
||||
run: |
|
||||
poetry run httprunner
|
||||
poetry run hmake
|
||||
poetry run hrun
|
||||
poetry run coverage run --source=httprunner -m pytest httprunner
|
||||
- name: coverage report
|
||||
run: |
|
||||
poetry run coverage xml
|
||||
poetry run coverage report -m
|
||||
- name: Codecov
|
||||
uses: codecov/codecov-action@v3
|
||||
with:
|
||||
# User defined upload name. Visible in Codecov UI
|
||||
name: httprunner
|
||||
# Repository upload token - get it from codecov.io
|
||||
token: ${{ secrets.CODECOV_TOKEN }}
|
||||
# Path to coverage file to upload
|
||||
file: ./coverage.xml
|
||||
# Flag upload to group coverage metrics (e.g. unittests | integration | ui,chrome)
|
||||
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:
|
||||
test-hrp:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
go-version:
|
||||
- 1.18.x
|
||||
- 1.23.x
|
||||
os: [ubuntu-latest, macos-latest, windows-latest]
|
||||
runs-on: ${{ matrix.os }}
|
||||
steps:
|
||||
|
||||
Reference in New Issue
Block a user