From df42561bd83778c21df9a717b045951b9d4dca31 Mon Sep 17 00:00:00 2001 From: callebtc <93376500+callebtc@users.noreply.github.com> Date: Sun, 11 Feb 2024 20:20:15 +0100 Subject: [PATCH] skip for postgres on github actions --- tests/test_db.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tests/test_db.py b/tests/test_db.py index 1b55a345..3b2af374 100644 --- a/tests/test_db.py +++ b/tests/test_db.py @@ -9,11 +9,16 @@ from cashu.core.migrations import backup_database from cashu.core.settings import settings from cashu.mint.ledger import Ledger -from tests.helpers import is_github_actions +from tests.helpers import is_github_actions, is_postgres @pytest.mark.asyncio -@pytest.mark.skipif(is_github_actions, reason="Fails on GitHub Actions") +@pytest.mark.skipif( + is_github_actions and is_postgres, + reason=( + "Fails on GitHub Actions because pg_dump is not the same version as postgres" + ), +) async def test_backup_db_migration(ledger: Ledger): settings.db_backup_path = "./test_data/backups/" filepath = await backup_database(ledger.db, 999)