name: integration_test on: push: pull_request: types: [synchronize] jobs: integration_test: name: integration_test - ${{ matrix.python-version }} on ${{ matrix.os }} runs-on: ${{ matrix.os }} strategy: max-parallel: 6 matrix: python-version: ['3.7', '3.8', '3.9', '3.10'] os: [ubuntu-latest, macos-latest] # TODO: 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 -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/