Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improve pipeline #2

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Run HelloWorld Flow
on:
push:

jobs:
helloworld:
permissions:
id-token: write
contents: read

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.11

- name: Install and Configure Outerbounds
run: |-
python -m pip install -U outerbounds && \
outerbounds service-principal-configure \
--name weather-cicd \
--deployment-domain dev-content.outerbounds.xyz \
--perimeter default \
--github-actions

- name: Deploy workflows
run: |-
./deploy
4 changes: 2 additions & 2 deletions weathervizflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ class WeatherVizFlow(BaseFlow):
def start(self):
self.timestamp = self.sensor_value
print("Querying data for", self.timestamp)
latest_weather = self.query_snowflake(
self.latest_weather = self.query_snowflake(
template=("bay_weather", [self.timestamp])
)
current.card.append(
Markdown(f"# Temperatures in the Bay Area at {self.timestamp}")
)
current.card.append(make_vegachart(latest_weather))
current.card.append(make_vegachart(self.latest_weather))
self.next(self.end)

@step
Expand Down
Loading