c5ebb66f72
Bumps the github-actions group with 1 update: [lkstrp/pypsa-validator](https://github.com/lkstrp/pypsa-validator). Updates `lkstrp/pypsa-validator` from 0.2.1 to 0.2.2 - [Release notes](https://github.com/lkstrp/pypsa-validator/releases) - [Commits](https://github.com/lkstrp/pypsa-validator/compare/v0.2.1...v0.2.2) --- updated-dependencies: - dependency-name: lkstrp/pypsa-validator dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github-actions ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
50 lines
1.4 KiB
YAML
50 lines
1.4 KiB
YAML
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.2.2
|
|
with:
|
|
step: run-self-hosted-validation
|
|
env_file: envs/environment.yaml
|
|
snakemake_config: config/test/config.validator.yaml
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
create-report:
|
|
name: Create report
|
|
if: github.event.pull_request.head.repo.full_name == github.repository
|
|
needs: run-validation
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: lkstrp/pypsa-validator@v0.2.2
|
|
with:
|
|
step: create-comment
|
|
snakemake_config: config/test/config.validator.yaml
|
|
# The path starting from prefix in config
|
|
# For plot results/<prefix>/<scenario>/<plot_name>.png pass
|
|
# <scenario>/<plot_name>.png
|
|
plots: >
|
|
"
|
|
graphs/energy.svg
|
|
graphs/costs.svg
|
|
graphs/balances-energy.svg
|
|
graphs/balances-urban_central_heat.svg
|
|
graphs/balances-urban_decentral_heat.svg
|
|
graphs/balances-rural_heat.svg
|
|
"
|
|
validator_key: ${{ secrets.VALIDATOR_KEY }}
|