Skip to content

Commit 1199887

Browse files
committed
dev changes deployment
1 parent fc9d69c commit 1199887

File tree

2 files changed

+47
-17
lines changed

2 files changed

+47
-17
lines changed

.github/workflows/snowpark-ci-cd.yml

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,18 @@ jobs:
1818
AWS_SECRET_KEY: ${{ secrets.AWS_SECRET_KEY }}
1919
steps:
2020
- uses: actions/checkout@v3
21-
- name: Set up Python
22-
uses: actions/setup-python@v4
21+
- name: Set up Conda
22+
uses: conda-incubator/setup-miniconda@v2
2323
with:
24+
auto-update-conda: true
2425
python-version: '3.10'
25-
- name: Install dependencies
26+
activate-environment: snowflake-demo
27+
28+
- name: Install dependencies with Conda
29+
shell: bash -l {0}
2630
run: |
27-
python -m pip install --upgrade pip
28-
29-
# Install from requirements.txt
30-
pip install -r requirements.txt
31+
# Install from environment.yml
32+
conda env update --file environment.yml --prune
3133
3234
# Just verify Snow CLI version - don't try to use other commands that might not exist
3335
snow --version || echo "Snow CLI version check failed"
@@ -105,19 +107,18 @@ jobs:
105107
runs-on: ubuntu-latest
106108
steps:
107109
- uses: actions/checkout@v3
108-
- name: Set up Python
109-
uses: actions/setup-python@v4
110+
- name: Set up Conda
111+
uses: conda-incubator/setup-miniconda@v2
110112
with:
113+
auto-update-conda: true
111114
python-version: '3.10'
112-
- name: Install dependencies
113-
run: |
114-
python -m pip install --upgrade pip
115-
116-
# Install from requirements.txt with force reinstall for key packages
117-
pip install -r requirements.txt --force-reinstall
115+
activate-environment: snowflake-demo
118116

119-
# Install specific version we know works (avoid 0.2.9)
120-
pip install snowflake-connector-python==3.13.2 snowflake-snowpark-python==1.25.0
117+
- name: Install dependencies with Conda
118+
shell: bash -l {0}
119+
run: |
120+
# Install from environment.yml
121+
conda env update --file environment.yml --prune
121122
122123
# Just verify Snow CLI version - no extension or snowpark commands
123124
snow --version

environment.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: snowflake-demo
2+
channels:
3+
- https://repo.anaconda.com/pkgs/snowflake
4+
- conda-forge
5+
- nodefaults
6+
dependencies:
7+
- python=3.10
8+
- snowflake-snowpark-python
9+
- pip
10+
- openssl=1.1.1
11+
- pyarrow>=7.0.0
12+
- pyyaml
13+
- jinja2
14+
- boto3
15+
- cryptography
16+
- pip:
17+
# Snowflake tools
18+
- snowflake-cli-labs
19+
- snowflake-connector-python>=3.0.0
20+
# Additional useful packages for data processing
21+
- pandas
22+
- numpy
23+
- pytest
24+
- python-dotenv
25+
- toml==0.10.2
26+
- typer==0.15.2
27+
- exceptiongroup>=1.2.2
28+
- iniconfig==2.0.0
29+
- tomli>=2.2.1

0 commit comments

Comments
 (0)