diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index aad4ff16..731dbbff 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -24,7 +24,8 @@ jobs: shell: bash -l {0} steps: - - uses: actions/checkout@v4 + - name: Checkout code + uses: actions/checkout@v4 - name: Setup micromamba uses: mamba-org/setup-micromamba@v2 @@ -49,3 +50,15 @@ jobs: with: name: technology-data path: outputs/ + + - name: Check for differences in generated outputs + run: |- + git config --global --add safe.directory $GITHUB_WORKSPACE + git add outputs/ + if ! git diff --cached --quiet; then + echo "Generated outputs differ from the branch. Please commit rerun `snakemake` and commit the changes to the `outputs/*.csv` files." + git diff --cached + exit 1 + else + echo "No differences found in generated outputs." + fi diff --git a/docs/release_notes.rst b/docs/release_notes.rst index 0f2b8c1b..a64fcb03 100644 --- a/docs/release_notes.rst +++ b/docs/release_notes.rst @@ -48,6 +48,8 @@ Upcoming Release * Adds rounding for the value column of the csv files produced by compile_cost_assumptions_usa (https://github.com/PyPSA/technology-data/pull/206) +* Updates ci.yaml such that it fails if the generated outputs are different than the ones committed (https://github.com/PyPSA/technology-data/pull/205) + `v0.11.0 `__ (24th January 2025) =======================================================================================