mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-12 19:39:44 +08:00
test:
1, migrate from travis CI to github actions; 2, migrate from coveralls to codecov.
This commit is contained in:
4
.github/workflows/integration_test.yml
vendored
4
.github/workflows/integration_test.yml
vendored
@@ -3,7 +3,7 @@ name: integration_test
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
integration_test:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
@@ -22,7 +22,7 @@ jobs:
|
||||
python -m pip install --upgrade pip
|
||||
pip install poetry
|
||||
poetry --version
|
||||
poetry install -vvv
|
||||
poetry install -vv
|
||||
- name: Test package installation
|
||||
run: |
|
||||
poetry build
|
||||
|
||||
13
.github/workflows/unittest.yml
vendored
13
.github/workflows/unittest.yml
vendored
@@ -3,7 +3,7 @@ name: unittest
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
unittest:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
@@ -22,23 +22,24 @@ jobs:
|
||||
python -m pip install --upgrade pip
|
||||
pip install poetry
|
||||
poetry --version
|
||||
poetry install -vvv
|
||||
poetry install -vv
|
||||
- name: Run unittest for httprunner
|
||||
run: |
|
||||
poetry run python -m httprunner.cli hrun -V
|
||||
poetry run python -m httprunner.cli hrun -h
|
||||
poetry run coverage run --source=httprunner -m unittest discover
|
||||
poetry run coverage xml
|
||||
poetry run coverage report -m
|
||||
- name: Codecov
|
||||
uses: codecov/codecov-action@v1.0.5
|
||||
with:
|
||||
# User defined upload name. Visible in Codecov UI
|
||||
name: httprunner # optional
|
||||
name: httprunner
|
||||
# Repository upload token - get it from codecov.io
|
||||
token: ${{ secrets.CODECOV_TOKEN }}
|
||||
# Path to coverage file to upload
|
||||
file: ./.coverage # optional
|
||||
file: ./coverage.xml
|
||||
# Flag upload to group coverage metrics (e.g. unittests | integration | ui,chrome)
|
||||
flags: unittests # optional
|
||||
flags: unittests
|
||||
# Specify whether or not CI build should fail if Codecov runs into an error during upload
|
||||
fail_ci_if_error: true # optional
|
||||
fail_ci_if_error: true
|
||||
|
||||
4
.gitignore
vendored
4
.gitignore
vendored
@@ -14,4 +14,6 @@ logs
|
||||
locustfile.py
|
||||
site/
|
||||
reports
|
||||
.venv
|
||||
.venv
|
||||
*.xml
|
||||
htmlcov/
|
||||
26
.travis.yml
26
.travis.yml
@@ -1,26 +0,0 @@
|
||||
sudo: false
|
||||
language: python
|
||||
python:
|
||||
- 2.7
|
||||
- 3.5
|
||||
- 3.6
|
||||
matrix:
|
||||
include: # Required for Python 3.7+
|
||||
- python: 3.7
|
||||
dist: xenial
|
||||
- python: 3.8
|
||||
dist: xenial
|
||||
install:
|
||||
- pip install poetry
|
||||
- poetry --version
|
||||
- poetry install -vvv
|
||||
- poetry build
|
||||
- ls dist/*.whl | xargs pip install # test installation
|
||||
script:
|
||||
- hrun -V
|
||||
- cd tests/httpbin && hrun basic.yml --failfast && cd -
|
||||
- poetry run python -m httprunner.cli hrun -V
|
||||
- poetry run python -m httprunner.cli hrun -h
|
||||
- poetry run coverage run --source=httprunner -m unittest discover
|
||||
after_success:
|
||||
- poetry run coveralls
|
||||
@@ -2,8 +2,11 @@
|
||||
# HttpRunner
|
||||
|
||||
[](https://pepy.tech/project/httprunner)
|
||||
[](https://travis-ci.org/httprunner/httprunner)
|
||||
[](https://coveralls.io/github/HttpRunner/HttpRunner?branch=master)
|
||||
[](https://github.com/httprunner/httprunner/actions)
|
||||
[](https://github.com/httprunner/httprunner/actions)
|
||||
[](https://codecov.io/gh/httprunner/httprunner)
|
||||
[](https://pypi.python.org/pypi/httprunner)
|
||||
[](https://pypi.python.org/pypi/httprunner)
|
||||
[](https://testerhome.com/github_statistics)
|
||||
|
||||
@@ -5,6 +5,8 @@
|
||||
**Changed**
|
||||
|
||||
- refactor: use poetry>=1.0.0
|
||||
- test: migrate from travis CI to github actions
|
||||
- test: migrate from coveralls to codecov
|
||||
|
||||
## 2.4.2 (2019-12-13)
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
__version__ = "2.4.2"
|
||||
__version__ = "2.4.3"
|
||||
__description__ = "One-stop solution for HTTP(S) testing."
|
||||
|
||||
__all__ = ["__version__", "__description__"]
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
[tool.poetry]
|
||||
name = "httprunner"
|
||||
version = "2.4.2"
|
||||
version = "2.4.3"
|
||||
description = "One-stop solution for HTTP(S) testing."
|
||||
license = "Apache-2.0"
|
||||
readme = "README.md"
|
||||
@@ -45,7 +45,6 @@ future = { version = "^0.18.1", python = "~2.7" }
|
||||
[tool.poetry.dev-dependencies]
|
||||
flask = "<1.0.0"
|
||||
coverage = "^4.5.4"
|
||||
coveralls = "^1.8.2"
|
||||
|
||||
[tool.poetry.scripts]
|
||||
hrun = "httprunner.cli:main"
|
||||
|
||||
Reference in New Issue
Block a user