change: add integration test for windows

This commit is contained in:
debugtalk
2022-03-21 16:08:35 +08:00
parent 13a284bb53
commit f5aba034de

View File

@@ -15,7 +15,7 @@ jobs:
max-parallel: 6 max-parallel: 6
matrix: matrix:
python-version: ['3.7', '3.8', '3.9', '3.10'] python-version: ['3.7', '3.8', '3.9', '3.10']
os: [ubuntu-latest, macos-latest] # TODO: windows-latest os: [ubuntu-latest, macos-latest, windows-latest]
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
@@ -26,19 +26,20 @@ jobs:
architecture: x64 architecture: x64
- name: Install dependencies - name: Install dependencies
run: | run: |
python -m pip install --upgrade pip
pip install poetry pip install poetry
poetry --version poetry --version
poetry install -vv -E upload poetry install -vv -E upload
- name: Test package installation - name: Test build package
run: | run: |
poetry build poetry build
ls dist/*.whl | xargs pip install # test installation ls -l dist/
hrun -V - name: Test commands
har2case -h run: |
httprunner run -h poetry run hrun -V
httprunner startproject -h poetry run har2case -h
httprunner har2case -h poetry run httprunner run -h
poetry run httprunner startproject -h
poetry run httprunner har2case -h
- name: Run smoketest - postman echo - name: Run smoketest - postman echo
run: | run: |
poetry run hrun examples/postman_echo/request_methods poetry run hrun examples/postman_echo/request_methods