-
Notifications
You must be signed in to change notification settings - Fork 2
42 lines (37 loc) · 1.05 KB
/
trigger_pred_flow.yml
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
38
39
40
41
42
name: Weather Forecasting Workflow Trigger
on:
schedule:
- cron: '0 9 * * *'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Install latest version of Poetry
run: |
curl -sSL https://install.python-poetry.org | python -
- name: Add Poetry to $PATH
run: |
echo "${HOME}/.poetry/bin" >> $GITHUB_PATH
- name: Get Poetry version
run: poetry --version
- name: Check pyproject.toml validity
run: poetry check --no-interaction
- name: Install deps
run: |
make install
- name: Lint with black & ruff
run: |
poetry run make linting
- name: Set up credentials
run: |
touch .env
echo MOTHERDUCK_TOKEN=${{ secrets.MOTHERDUCK_TOKEN }} >> .env
echo PLOOMBER_API_KEY=${{ secrets.PLOOMBER_API_KEY }} >> .env
- name: run Weather Forecasting Workflow
run: |
make run-pred-flow