From 82062b5601f5c0a0397407d2c873fffb0afc7a89 Mon Sep 17 00:00:00 2001 From: Lex Berezhny Date: Sat, 6 Jun 2020 12:20:19 -0400 Subject: [PATCH] trying codecov --- .github/workflows/main.yml | 10 ++++++---- lbry/stream/managed_stream.py | 3 +-- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index fb4dd6fc0..fefe79bea 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -47,11 +47,13 @@ jobs: - run: | pip install --user --upgrade pip wheel pip install -e .[test] - - working-directory: lbry - env: + - env: HOME: /tmp - run: coverage run -p --source=lbry -m unittest -vv tests.unit.test_conf -# run: coverage run -p --source=lbry -m unittest discover -vv tests.unit + run: coverage run -m unittest -vv tests.unit.test_conf +# run: coverage run -m unittest discover -vv tests.unit + - uses: codecov/codecov-action@v1 + with: + flags: unit-${{ matrix.os }} tests-integration: name: "tests / integration" diff --git a/lbry/stream/managed_stream.py b/lbry/stream/managed_stream.py index 5cb21c478..7511727f1 100644 --- a/lbry/stream/managed_stream.py +++ b/lbry/stream/managed_stream.py @@ -11,7 +11,6 @@ from lbry.schema.mime_types import guess_media_type from lbry.stream.downloader import StreamDownloader from lbry.stream.descriptor import StreamDescriptor, sanitize_file_name from lbry.stream.reflector.client import StreamReflectorClient -from lbry.extras.daemon.storage import StoredContentClaim from lbry.blob import MAX_BLOB_SIZE if typing.TYPE_CHECKING: @@ -78,7 +77,7 @@ class ManagedStream: def __init__(self, loop: asyncio.AbstractEventLoop, config: 'Config', blob_manager: 'BlobManager', sd_hash: str, download_directory: typing.Optional[str] = None, file_name: typing.Optional[str] = None, - status: typing.Optional[str] = STATUS_STOPPED, claim: typing.Optional[StoredContentClaim] = None, + status: typing.Optional[str] = STATUS_STOPPED, claim: typing.Optional['StoredContentClaim'] = None, download_id: typing.Optional[str] = None, rowid: typing.Optional[int] = None, descriptor: typing.Optional[StreamDescriptor] = None, content_fee: typing.Optional['Transaction'] = None,