From 7533f5eecf2b3ccb8313f9551e949facf3ed3ba6 Mon Sep 17 00:00:00 2001 From: callebtc <93376500+callebtc@users.noreply.github.com> Date: Sun, 11 Feb 2024 20:19:05 +0100 Subject: [PATCH] remove test from github --- .github/workflows/tests.yml | 6 ------ tests/test_db.py | 2 ++ 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 766892f7..cf1a176b 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -43,12 +43,6 @@ jobs: steps: - name: Checkout repository and submodules uses: actions/checkout@v2 - - name: Install PostgreSQL Client 16 - run: | - sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(. /etc/os-release; echo $UBUNTU_CODENAME)-pgdg main" > /etc/apt/sources.list.d/pgdg.list' - wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add - - sudo apt-get update - sudo apt-get -y install postgresql-client-16 - uses: ./.github/actions/prepare with: python-version: ${{ inputs.python-version }} diff --git a/tests/test_db.py b/tests/test_db.py index 8e08469a..1b55a345 100644 --- a/tests/test_db.py +++ b/tests/test_db.py @@ -9,9 +9,11 @@ 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 @pytest.mark.asyncio +@pytest.mark.skipif(is_github_actions, reason="Fails on GitHub Actions") async def test_backup_db_migration(ledger: Ledger): settings.db_backup_path = "./test_data/backups/" filepath = await backup_database(ledger.db, 999)