diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml index 7ac97fb..ebddcd5 100644 --- a/.github/workflows/build-test.yml +++ b/.github/workflows/build-test.yml @@ -1,4 +1,4 @@ -name: Build, Test, and Publish Docker Image +name: Build, Test, and Publish Docker Image RSLEARN on: # TODO: Only run on pull request or push to main push: @@ -99,6 +99,8 @@ jobs: - name: Run Integration Tests run: | docker compose up -d --wait --quiet-pull + sleep 10 + curl http://0.0.0.0:4443/storage/v1/b/test-bucket docker run --rm \ -e TEST_BUCKET=${{ env.TEST_BUCKET }} \ -e TEST_PREFIX=${{ env.TEST_PREFIX }} \ diff --git a/tests/integration/conftest.py b/tests/integration/conftest.py index 597c1f3..cd4d525 100644 --- a/tests/integration/conftest.py +++ b/tests/integration/conftest.py @@ -1,4 +1,5 @@ import os +from pathlib import Path import pytest @@ -16,6 +17,11 @@ @pytest.fixture(scope="session", autouse=True) def set_storage_emulator_host(): os.environ.setdefault("STORAGE_EMULATOR_HOST", "http://localhost:4443") + import unittest.mock + + # unittest.mock.patch.dict(os.environ, { + # "GOOGLE_APPLICATION_CREDENTIALS": "tests/fake-gcs_service-account.json" + # }).start() @pytest.fixture(scope="session")