Skip to content

Commit

Permalink
deploy udf test
Browse files Browse the repository at this point in the history
  • Loading branch information
kaarthik108 committed Sep 24, 2023
1 parent 08384bf commit 5a225eb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/snowflake_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,16 @@ jobs:
run: |
poetry install
- name: Build
run: |
poetry build
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v37

- name: Deploy to Snowflake
run: |
cd src
IFS=$'\n'
for file in ${{ steps.changed-files.outputs.all_modified_files }}; do
# Extract the path relative to src
Expand All @@ -64,18 +67,17 @@ jobs:
echo "Component Name: $component_name"
case $component_type in
task)
poetry run snowdev deploy --task $component_name || continue
poetry run dist/snowdev deploy --task $component_name || continue
;;
streamlit)
poetry run snowdev deploy --streamlit $component_name || continue
poetry run dist/snowdev deploy --streamlit $component_name || continue
;;
udf)
poetry run snowdev deploy --udf $component_name || continue
poetry run dist/snowdev deploy --udf $component_name || continue
;;
sproc)
poetry run snowdev deploy --sproc $component_name || continue
poetry run dist/snowdev deploy --sproc $component_name || continue
;;
esac
done
continue-on-error: true
2 changes: 1 addition & 1 deletion src/udf/test_new_/app.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ role = ""
[tool.poetry.dependencies]
python = "3.10.0"
snowflake-snowpark-python = "1.5.1"
pandas = "2.0.3"
pandas = "2.0.3"

0 comments on commit 5a225eb

Please sign in to comment.