Fix tests on CI (#534)
authorMarcel van der Veldt <m.vanderveldt@outlook.com>
Wed, 15 Mar 2023 22:39:42 +0000 (23:39 +0100)
committerGitHub <noreply@github.com>
Wed, 15 Mar 2023 22:39:42 +0000 (23:39 +0100)
.github/workflows/test.yml
pyproject.toml

index 41123d4965c050d0ef242793f06366fcb2201b86..44f43e80163b5b376f77da3f2a19cb9bb3f9f88a 100644 (file)
@@ -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/
index 6d25ebe75e508d84da4faf84cd5afea782172801..c189297bdcee86a2683aab99ec2e45c82e142f79 100644 (file)
@@ -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"]