fix: start docker as service

This commit is contained in:
lilong.129
2023-07-21 23:29:38 +08:00
parent 9b30fa2435
commit ac4c921c46
2 changed files with 10 additions and 8 deletions

View File

@@ -16,6 +16,11 @@ jobs:
name: smoketest - httprunner - ${{ matrix.python-version }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
services:
service-httpbin:
image: kennethreitz/httpbin
ports:
- 80:80
strategy:
fail-fast: false
max-parallel: 6
@@ -30,10 +35,6 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
architecture: x64
- name: start httpbin server with docker
run: |
docker pull kennethreitz/httpbin
docker run -p 80:80 kennethreitz/httpbin
- name: Install dependencies
run: |
pip install poetry

View File

@@ -14,6 +14,11 @@ env:
jobs:
py-httprunner:
runs-on: ${{ matrix.os }}
services:
service-httpbin:
image: kennethreitz/httpbin
ports:
- 80:80
strategy:
fail-fast: false
max-parallel: 12
@@ -28,10 +33,6 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
architecture: x64
- name: start httpbin server with docker
run: |
docker pull kennethreitz/httpbin
docker run -p 80:80 kennethreitz/httpbin
- name: Install dependencies
run: |
python -m pip install --upgrade pip