Skip to content

Adding Italy

Adding Italy #97

Workflow file for this run

name: Validator Bot
on:
pull_request:
branches:
- master
- main
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
run-validation:
name: Run validation
if: github.event.pull_request.head.repo.full_name == github.repository
runs-on: self-hosted
steps:
- uses: lkstrp/pypsa-validator@v0.1.4
with:
step: run-self-hosted-validation
env_file: environment.yaml
snakemake_config: config/config.yaml
pre_command: "build_scenarios -f"
main_command: "ariadne_all"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
upload-artifacts:
name: Upload artifacts
if: github.event.pull_request.head.repo.full_name == github.repository
needs: run-validation
runs-on: self-hosted
steps:
- uses: actions/upload-artifact@v4
with:
name: logs
path: |
~/${{ github.repository }}/validator-metadata.yml
~/${{ github.repository }}/main/logs/
~/${{ github.repository }}/main/.snakemake/
~/${{ github.repository }}/feature/logs/
~/${{ github.repository }}/feature/.snakemake/
if-no-files-found: error
retention-days: 90
include-hidden-files: true
- uses: actions/upload-artifact@v4
with:
name: results (main branch)
path: |
~/${{ github.repository }}/main/results
if-no-files-found: error
retention-days: 90
include-hidden-files: true
- uses: actions/upload-artifact@v4
with:
name: results (feature branch)
path: |
~/${{ github.repository }}/feature/results
if-no-files-found: error
retention-days: 90
include-hidden-files: true
comment-on-pr:
name: Comment on pull request
if: github.event.pull_request.head.repo.full_name == github.repository
needs: upload-artifacts
runs-on: ubuntu-latest
steps:
- uses: lkstrp/pypsa-validator@v0.1.4
with:
step: create-comment
snakemake_config: config/config.yaml
# The path starting from prefix in config
# For plot results/<prefix>/<scenario>/<plot_name>.png pass
# <scenario>/<plot_name>.png
plots: >
"
KN2045_Bal_v4/ariadne/primary_energy.png
KN2045_Bal_v4/ariadne/secondary_energy.png
KN2045_Bal_v4/ariadne/final_energy.png
ariadne_comparison/Trade-Secondary-Energy-Hydrogen-Volume.png
ariadne_comparison/Trade-Secondary-Energy-Liquids-Hydrogen-Volume.png
ariadne_comparison/Capacity-Electricity-Solar.png
"
validator_key: ${{ secrets.VALIDATOR_KEY }}