mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-12 11:09:43 +08:00
49 lines
1.2 KiB
YAML
49 lines
1.2 KiB
YAML
name: integration_test
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- dev
|
|
pull_request:
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
integration_test:
|
|
|
|
name: integration_test - ${{ matrix.python-version }} on ${{ matrix.os }}
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
max-parallel: 6
|
|
matrix:
|
|
python-version: [3.6, 3.7, 3.8]
|
|
os: [ubuntu-latest, macos-latest] # TODO: windows-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
- name: Set up Python ${{ matrix.python-version }}
|
|
uses: actions/setup-python@v1
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|
|
- name: Install dependencies
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
pip install poetry
|
|
poetry --version
|
|
poetry install -vv -E upload
|
|
- name: Test package installation
|
|
run: |
|
|
poetry build
|
|
ls dist/*.whl | xargs pip install # test installation
|
|
hrun -V
|
|
har2case -h
|
|
httprunner run -h
|
|
httprunner startproject -h
|
|
httprunner har2case -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/
|