-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (42 loc) · 1.39 KB
/
cross-border-electricity-daily.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
43
44
45
46
47
48
49
50
51
name: cross-border-electricity-daily
on:
workflow_dispatch:
schedule:
- cron: '05 00 * * *'
jobs:
schedule_pipelines:
runs-on: ubuntu-latest
permissions:
pages: write
contents: write
steps:
- name: checkout repo content
uses: actions/checkout@v4
- name: setup python
uses: actions/setup-python@v5
with:
python-version: '3.10'
cache: 'pip'
- name: install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y librdkafka-dev build-essential
- name: install python packages
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: execute python workflows from bash script
env:
HOPSWORKS: ${{ secrets.HOPSWORKS_API_KEY }}
EntsoePandasClient: ${{ secrets.ENTSOEPANDASCLIENT }}
run: |
export PYTHONPATH=$(pwd)
python feature_pipeline/pipeline.py -d -v 1
python inference_pipeline/inference.py -v 1
- name: commit generated predictions
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "Daily cross-border electricity predictions"
commit_options: '--no-verify --signoff'
file_pattern: 'inference_pipeline/predictions/* inference_pipeline/monitoring/*'
repository: .