fix: start docker as service

This commit is contained in:
lilong.129
2023-07-21 23:31:52 +08:00
parent 9b30fa2435
commit ac4c921c46
2 changed files with 10 additions and 8 deletions
+5 -4
View File
@@ -16,6 +16,11 @@ jobs:
name: smoketest - httprunner - ${{ matrix.python-version }} on ${{ matrix.os }} name: smoketest - httprunner - ${{ matrix.python-version }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
services:
service-httpbin:
image: kennethreitz/httpbin
ports:
- 80:80
strategy: strategy:
fail-fast: false fail-fast: false
max-parallel: 6 max-parallel: 6
@@ -30,10 +35,6 @@ jobs:
with: with:
python-version: ${{ matrix.python-version }} python-version: ${{ matrix.python-version }}
architecture: x64 architecture: x64
- name: start httpbin server with docker
run: |
docker pull kennethreitz/httpbin
docker run -p 80:80 kennethreitz/httpbin
- name: Install dependencies - name: Install dependencies
run: | run: |
pip install poetry pip install poetry
+5 -4
View File
@@ -14,6 +14,11 @@ env:
jobs: jobs:
py-httprunner: py-httprunner:
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
services:
service-httpbin:
image: kennethreitz/httpbin
ports:
- 80:80
strategy: strategy:
fail-fast: false fail-fast: false
max-parallel: 12 max-parallel: 12
@@ -28,10 +33,6 @@ jobs:
with: with:
python-version: ${{ matrix.python-version }} python-version: ${{ matrix.python-version }}
architecture: x64 architecture: x64
- name: start httpbin server with docker
run: |
docker pull kennethreitz/httpbin
docker run -p 80:80 kennethreitz/httpbin
- name: Install dependencies - name: Install dependencies
run: | run: |
python -m pip install --upgrade pip python -m pip install --upgrade pip