Kedro Pipeline CI/CD #10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Kedro Pipeline CI/CD | |
# Run on a schedule - daily at midnight | |
on: | |
schedule: | |
- cron: "0 0 * * *" # Run daily at midnight | |
workflow_dispatch: # Allows manual triggering | |
jobs: | |
run-kedro: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout the code | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.11' | |
- name: Install dependencies | |
run: | | |
pip install uv | |
uv pip install -r requirements.txt --system | |
- name: Run Kedro pipeline | |
env: | |
SNOWFLAKE_ACCOUNT: ${{ secrets.SNOWFLAKE_ACCOUNT }} | |
SNOWFLAKE_ROLE: ${{ secrets.SNOWFLAKE_ROLE }} | |
SNOWFLAKE_USER: ${{ secrets.SNOWFLAKE_USER }} | |
SNOWFLAKE_PASSWORD: ${{ secrets.SNOWFLAKE_PASSWORD }} | |
run: | | |
printenv | grep SNOWFLAKE | |
kedro run --env=gha |