Files
httprunner/.github/workflows/smoketest.yml
2022-03-23 22:22:22 +08:00

42 lines
979 B
YAML

name: smoketest
on:
push:
pull_request:
types: [synchronize]
jobs:
smoketest:
name: smoketest - ${{ matrix.python-version }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
max-parallel: 6
matrix:
python-version: [2.7, 3.5, 3.6]
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@v1
- 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: Test build package
run: |
poetry build
ls dist/
- name: Run smoketest for hrun command
run: |
cd tests/httpbin
poetry run hrun basic.yml --failfast
cd -