-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (31 loc) · 1.17 KB
/
python-connector.yml
File metadata and controls
37 lines (31 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: python-connector
# Controls when the action will run.
on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
deploy-snowflake-changes-job:
runs-on: ubuntu-latest
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: Checkout repository
uses: actions/checkout@v2
- name: Use Python 3.10.x
uses: actions/setup-python@v2.2.1
with:
python-version: 3.10.x
- name: Installing dependencies
run: |
echo "Installing dependencies"
pip install snowflake-connector-python
- name: Copy data from WHITE_WINE_QUALITY into GD tables and generate MD5 checksum
env:
SF_ACCOUNT: ${{ secrets.SF_ACCOUNT }}
SF_USERNAME: ${{ secrets.SF_USERNAME }}
SF_ROLE: ${{ secrets.SF_ROLE }}
SF_WAREHOUSE: ${{ secrets.SF_WAREHOUSE }}
SF_DATABASE: ${{ secrets.SF_DATABASE }}
SF_PASSWORD: ${{ secrets.SF_PASSWORD }}
run : |
echo "printing wine quality table column names"
python3 $GITHUB_WORKSPACE/wine-quality-scripts/initial_setup.py