From 9adab0ccead37d3bef84f282121e2532fbc9654d Mon Sep 17 00:00:00 2001 From: Cesar Date: Fri, 12 Jul 2024 01:49:53 +0200 Subject: [PATCH] chore: export serverless in main.py file --- .github/workflows/cd.dev-functions.yaml | 4 ++-- autotx/serverless_functions/main.py | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 autotx/serverless_functions/main.py diff --git a/.github/workflows/cd.dev-functions.yaml b/.github/workflows/cd.dev-functions.yaml index 9a7cf31..b72098f 100644 --- a/.github/workflows/cd.dev-functions.yaml +++ b/.github/workflows/cd.dev-functions.yaml @@ -34,7 +34,7 @@ jobs: virtualenvs-in-project: true - name: Export requirements.txt from Poetry - run: poetry export --without-hashes --format=requirements.txt > requirements.txt + run: poetry export --without-hashes --format=requirements.txt > ./autotx/serverless_functions/requirements.txt - id: 'auth' uses: 'google-github-actions/auth@v2' @@ -55,7 +55,7 @@ jobs: gcloud functions deploy get_user_tasks \ --project=autotx-423210 \ --gen2 \ - --source=autotx/serverless_functions/get_user_tasks.py \ + --source=autotx/serverless_functions \ --runtime=python310 \ --region=us-central1 \ --trigger-http \ diff --git a/autotx/serverless_functions/main.py b/autotx/serverless_functions/main.py new file mode 100644 index 0000000..81d38e0 --- /dev/null +++ b/autotx/serverless_functions/main.py @@ -0,0 +1,3 @@ +from autotx.serverless_functions.get_user_tasks import get_user_tasks + +__all__ = ["get_user_tasks"]