Skip to content

Commit

Permalink
chore: export serverless in main.py file
Browse files Browse the repository at this point in the history
  • Loading branch information
cbrzn committed Jul 11, 2024
1 parent c649838 commit 9adab0c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/cd.dev-functions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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 \
Expand Down
3 changes: 3 additions & 0 deletions autotx/serverless_functions/main.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from autotx.serverless_functions.get_user_tasks import get_user_tasks

__all__ = ["get_user_tasks"]

0 comments on commit 9adab0c

Please sign in to comment.