diff --git a/.github/auth/db_auth.py b/.github/auth/db_auth.py index 9ccbc65b..fa31f9bc 100644 --- a/.github/auth/db_auth.py +++ b/.github/auth/db_auth.py @@ -14,7 +14,7 @@ def _write_auth_to_file(endpoint, obj_id): creds = collection.find_one({"_id": object_id_to_find}) del creds['_id'] - with open(".github/auth/gcp_auth.json", "w") as f: + with open("gcp_auth.json", "w") as f: json.dump(creds, f, indent=4) diff --git a/.github/workflows/gcp-test.yaml b/.github/workflows/gcp-test.yaml index 00677c7c..3ec13748 100644 --- a/.github/workflows/gcp-test.yaml +++ b/.github/workflows/gcp-test.yaml @@ -26,9 +26,9 @@ jobs: - name: Start GPU VM run: | - cd demos - python3 .github/auth/db_auth.py ${{ secrets.DB_ENDPOINT }} ${{ secrets.DB_OBJ_ID }} - python3 .github/auth/vm_auth.py ${{ secrets.SSH_KEY }} + cd demos/.github/auth + python3 db_auth.py ${{ secrets.DB_ENDPOINT }} ${{ secrets.DB_OBJ_ID }} + python3 vm_auth.py ${{ secrets.SSH_KEY }} run-test: needs: activate-vm