diff --git a/.github/workflows/integration_test.yml b/.github/workflows/integration_test.yml new file mode 100644 index 00000000..2e3f1802 --- /dev/null +++ b/.github/workflows/integration_test.yml @@ -0,0 +1,33 @@ +name: integration_test + +on: [push] + +jobs: + build: + + runs-on: ubuntu-latest + strategy: + max-parallel: 5 + matrix: + python-version: [2.7, 3.5, 3.6, 3.7, 3.8] + + 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 -vvv + - name: Test package installation + run: | + poetry build + ls dist/*.whl | xargs pip install # test installation + hrun -V + - name: Run smoketest for hrun command + run: | + cd tests/httpbin && hrun basic.yml --failfast && cd - diff --git a/.github/workflows/unittest.yml b/.github/workflows/unittest.yml index d20fc786..ad95b800 100644 --- a/.github/workflows/unittest.yml +++ b/.github/workflows/unittest.yml @@ -1,4 +1,4 @@ -name: Python package +name: unittest on: [push] @@ -23,14 +23,6 @@ jobs: pip install poetry poetry --version poetry install -vvv - - name: Test package installation - run: | - poetry build - ls dist/*.whl | xargs pip install # test installation - hrun -V - - name: Run smoketest for hrun command - run: | - cd tests/httpbin && hrun basic.yml --log-level debug --failfast && cd - - name: Run unittest for httprunner run: | python -m httprunner.cli hrun -V @@ -45,7 +37,7 @@ jobs: # Repository upload token - get it from codecov.io token: ${{ secrets.CODECOV_TOKEN }} # Path to coverage file to upload - file: .coverage # optional + file: ./.coverage # optional # Flag upload to group coverage metrics (e.g. unittests | integration | ui,chrome) flags: unittests # optional # Specify whether or not CI build should fail if Codecov runs into an error during upload