Skip to content

CI test runs can fail because of outdated data cache when making changes in data directory #1888

@daniel-rdt

Description

@daniel-rdt

Version Checks (indicate both or one)

  • I have confirmed this bug exists on the lastest release of PyPSA-Eur.

  • I have confirmed this bug exists on the current master branch of PyPSA-Eur.

Issue Description

CI test runs can fail unexpectedly when someone creates a PR that introduces changes to a file in the data directory. The reason for this is that the data directory is cached by default on a weekly schedule but not again when changes are introduced to the data directory.

Although this is a very niche issue and only occurs in the intermediate time of the weekly caching schedule, it is probably worth introducing a fix to the CI caching action that enables continuous passing of the CI test runs.

Reproducible Example

See this PR in a PyPSA-Eur fork: https://github.com/open-energy-transition/open-tyndp/actions/runs/19131935060/job/54674570111#step:12:5481

As newly introduced columns in a file in the data directory are not recognised by the CI, even though the changes are included in the PR.

Expected Behavior

One would expect the CI to take changes to the data directory into account.

Installed Versions

Details Replace this line.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions