Skip to content

Run DBT Project

Run DBT Project #18

Workflow file for this run

name: Run DBT Project
on:
schedule:
- cron: '0 6 * * *' # 6 AM UTC
- cron: '0 14 * * *' # 2 PM UTC
- cron: '0 22 * * *' # 10 PM UTC
workflow_dispatch: # Allows for manual triggering of the workflow
jobs:
run-dbt:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.8' # Adjust the Python version as needed
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run DBT
run: |
cd petro_dbt
dbt deps
dbt run