change: update docs

This commit is contained in:
lilong.129
2025-06-28 22:03:22 +08:00
parent ed0b915904
commit 8ef9b86fd1
32 changed files with 115 additions and 189 deletions

View File

@@ -34,16 +34,5 @@ jobs:
extra_files: LICENSE README.md docs/CHANGELOG.md
post_command: |
echo "ASSET_PATH=$INPUT_PROJECT_PATH/$BUILD_ARTIFACTS_FOLDER/$RELEASE_ASSET_FILE" >> $GITHUB_ENV
- name: Setup aliyun OSS
uses: manyuanrong/setup-ossutil@v2.0
with:
endpoint: "oss-cn-beijing.aliyuncs.com"
access-key-id: ${{ secrets.ALIYUN_ACCESSKEY_ID }}
access-key-secret: ${{ secrets.ALIYUN_ACCESSKEY_SECRET }}
- name: Upload artifacts to aliyun OSS
run: |
ossutil cp -rf internal/version/VERSION oss://httprunner/
ossutil cp -rf scripts/install.sh oss://httprunner/
ossutil cp -rf ${{ env.ASSET_PATH }} oss://httprunner/
- name: Test install.sh
run: bash -c "$(curl -ksSL https://httprunner.com/script/install.sh)"

View File

@@ -4,64 +4,19 @@ on:
push:
branches:
- master
- v2
- v3
pull_request:
env:
DISABLE_GA: "true"
jobs:
smoke-test-httprunner:
name: smoketest - httprunner - ${{ matrix.python-version }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
services:
service-httpbin:
image: kennethreitz/httpbin
ports:
- 80:80
strategy:
fail-fast: false
max-parallel: 6
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: |
pip install poetry
poetry --version
poetry install -vv -E upload
- name: Test build package
run: |
poetry build
ls -l dist/
- name: Test commands
run: |
poetry run hrun -V
poetry run httprunner run -h
- name: Run smoketest - postman echo
run: |
poetry run hrun examples/postman_echo/request_methods
- name: Run smoketest - httpbin
run: |
poetry run hrun examples/httpbin/
smoke-test-hrp:
name: smoketest - hrp - ${{ matrix.go-version }} on ${{ matrix.os }}
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:
@@ -75,11 +30,6 @@ jobs:
run: make build
- name: Run smoketest - run with parameters
run: ./output/hrp run examples/hrp/parameters_test.json
- name: Run smoketest - boom with parameters
run: ./output/hrp boom examples/hrp/parameters_test.json --spawn-count 10 --spawn-rate 10 --loop-count 10
- name: Run smoketest - boom with rendezvous
run: |
./output/hrp boom examples/hrp/rendezvous_test.json --spawn-count 10 --spawn-rate 10 --loop-count 10
- name: Run hrp convert --pytest
run: ./output/hrp convert examples/postman_echo/request_methods/
- name: Run hrp pytest

View File

@@ -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: