From 562e0955ff0165ed6f77815274bc1856e5a588ad Mon Sep 17 00:00:00 2001 From: Marcel van der Veldt Date: Wed, 15 Mar 2023 23:39:42 +0100 Subject: [PATCH] Fix tests on CI (#534) --- .github/workflows/test.yml | 4 +++- pyproject.toml | 4 ++++ 2 files changed, 7 insertions(+), 1 deletion(-) 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"] -- 2.34.1