Skip to content

Commit

Permalink
ci: fix escape flag in codecov (#1635)
Browse files Browse the repository at this point in the history
* ci: fix escape flag in codecov
  • Loading branch information
hanxiao committed Jan 9, 2021
1 parent e7ddd43 commit 9b846d7
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -151,5 +151,5 @@ jobs:
with:
file: coverage.xml
name: ${{ matrix.test-path }}-codecov
flags: ${{ matrix.test-path }}, core, ci, ${{ matrix.python-version }}
flags: core, ci
fail_ci_if_error: false
16 changes: 14 additions & 2 deletions tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import os
import random
import string
import time

import pytest
from fastapi.testclient import TestClient

from daemon.config import fastapi_config
from fastapi.testclient import TestClient
from jina.executors.metas import get_default_metas

PREFIX = fastapi_config.PREFIX
Expand Down Expand Up @@ -74,3 +74,15 @@ def pea_endpoints():
('_create', f'{PREFIX}/pea'),
('_delete', f'{PREFIX}/pea')
]


@pytest.fixture()
def docker_compose(request):
os.system(
f"docker-compose -f {request.param} --project-directory . up --build -d --remove-orphans"
)
time.sleep(10)
yield
os.system(
f"docker-compose -f {request.param} --project-directory . down --remove-orphans"
)
15 changes: 0 additions & 15 deletions tests/jinad/integration/distributed/conftest.py

This file was deleted.

0 comments on commit 9b846d7

Please sign in to comment.