From: Marcel van der Veldt Date: Wed, 15 Mar 2023 22:39:42 +0000 (+0100) Subject: Fix tests on CI (#534) X-Git-Url: https://git.kitaultman.com/?a=commitdiff_plain;h=562e0955ff0165ed6f77815274bc1856e5a588ad;p=music-assistant-server.git Fix tests on CI (#534) --- diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 41123d49..44f43e80 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -46,7 +46,9 @@ jobs: python-version: ${{ matrix.python-version }} - name: Install dependencies run: | + sudo apt-get update + sudo apt-get install ffmpeg python -m pip install --upgrade pip build setuptools - pip install . .[test] + pip install .[server] .[test] - name: Pytest run: pytest --durations 10 --cov-report term-missing --cov=music_assistant --cov-report=xml tests/ diff --git a/pyproject.toml b/pyproject.toml index 6d25ebe7..c189297b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -48,6 +48,7 @@ test = [ "mypy==1.0.1", "ruff==0.0.254", "pytest==7.2.1", + "pytest-asyncio==0.20.3", "pytest-aiohttp==1.0.4", "pytest-cov==4.0.0", "pre-commit==3.1.1" @@ -92,6 +93,9 @@ module = [ [tool.pytest.ini_options] asyncio_mode = "auto" +pythonpath = [ + "." +] [tool.setuptools] platforms = ["any"]