Skip to content

Commit

Permalink
no need for creds?
Browse files Browse the repository at this point in the history
  • Loading branch information
Hgherzog committed Oct 19, 2024
1 parent 528a562 commit b3a163d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down Expand Up @@ -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 }} \
Expand Down
6 changes: 6 additions & 0 deletions tests/integration/conftest.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import os
from pathlib import Path

import pytest

Expand All @@ -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")
Expand Down

0 comments on commit b3a163d

Please sign in to comment.