cross-border-electricity-daily #33
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: . |