Skip to content

Instantly share code, notes, and snippets.

@andrewdoss-bit
Created September 28, 2021 01:30
Show Gist options
  • Save andrewdoss-bit/e608b7496e0221f30705542712f29cb1 to your computer and use it in GitHub Desktop.
Save andrewdoss-bit/e608b7496e0221f30705542712f29cb1 to your computer and use it in GitHub Desktop.
Example workflow
name: ETL example
on:
push:
branches:
- main
jobs:
extract-transform-load:
runs-on: ubuntu-latest
env:
PG_CONN_STRING: ${{ secrets.PG_CONN_STRING }}
BITDOTIO_USER: bitdotio
BITDOTIO_REPO: simple_pipeline
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.7'
- name: Install dependencies
run: python -m pip install --upgrade pip -r requirements.txt
- name: NYT cases by county
run: |
python simple_pipeline/main.py \
-validate_data \
-name nyt_cases_counties \
'https://raw.githubusercontent.com/nytimes/covid-19-data/master/us-counties.csv' \
$BITDOTIO_USER/$BITDOTIO_REPO.cases_counties
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment