CI: install discogs extra so discogs tests run; remove skip logic

This commit is contained in:
Jack 2026-03-09 18:05:37 -04:00 committed by Šarūnas Nejus
parent da32d64599
commit 59b636ac8c
2 changed files with 2 additions and 10 deletions

View file

@ -72,7 +72,7 @@ jobs:
- if: ${{ env.IS_MAIN_PYTHON != 'true' }}
name: Test without coverage
run: |
poetry install --without=lint --extras=autobpm --extras=lyrics --extras=replaygain --extras=reflink --extras=fetchart --extras=chroma --extras=sonosupdate
poetry install --without=lint --extras=autobpm --extras=discogs --extras=lyrics --extras=replaygain --extras=reflink --extras=fetchart --extras=chroma --extras=sonosupdate
poe test
- if: ${{ env.IS_MAIN_PYTHON == 'true' }}
@ -80,7 +80,7 @@ jobs:
env:
LYRICS_UPDATED: ${{ steps.lyrics-update.outputs.any_changed }}
run: |
poetry install --extras=autobpm --extras=lyrics --extras=docs --extras=replaygain --extras=reflink --extras=fetchart --extras=chroma --extras=sonosupdate
poetry install --extras=autobpm --extras=discogs --extras=lyrics --extras=docs --extras=replaygain --extras=reflink --extras=fetchart --extras=chroma --extras=sonosupdate
poe docs
poe test-with-coverage

View file

@ -18,14 +18,6 @@ from unittest.mock import Mock, patch
import pytest
try:
import discogs_client # noqa: F401
except ImportError:
pytest.skip(
"discogs optional dependency not installed",
allow_module_level=True,
)
from beets import config
from beets.library import Item
from beets.test._common import Bag