From 80f07e9aee9978e9570465bc89fdbb22d6a9eb7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20S=C3=A1nchez-Gallego?= Date: Sun, 11 Feb 2024 20:37:35 -0800 Subject: [PATCH] Try using env.HOME context --- .github/workflows/test.yml | 4 ++-- tests/scripts/create_test_database.py | 3 --- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 908598d..42e234a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -26,11 +26,11 @@ jobs: python-version: ${{ matrix.python-version }} cache: 'pip' - - name: Cache sample files + - name: Restore sample files id: cache-samples uses: actions/cache@v4 with: - path: .config/sdss + path: ${{ env.HOME }}/.config/sdss key: ${{ runner.os }}-config-sdss - name: Install Postgresql diff --git a/tests/scripts/create_test_database.py b/tests/scripts/create_test_database.py index 5728197..5e1b5d7 100644 --- a/tests/scripts/create_test_database.py +++ b/tests/scripts/create_test_database.py @@ -56,9 +56,6 @@ def create_test_database( if os.environ.get("CI") == "true": log.warning("Running in CI.") - # user = "postgres" - # host = "localhost" - # port = 5432 log.info("Verifying that the database exists.")