neuroinformatics-unit / python-cookiecutter

Utility to create a basic Python project structure with tests, CI etc.
BSD 3-Clause "New" or "Revised" License
20 stars 3 forks source link

Run CI weekly on `main` #92

Closed alessandrofelder closed 8 months ago

alessandrofelder commented 8 months ago

Description

What is this PR

Why is this PR needed?

We'd like to run our tests regularly, because we rarely make changes to the repo, so we are unlikely to catch dependencies going out of date.

What does this PR do?

Adds a GH workflow that triggers the test workflow weekly on Sunday at 3AM only on this repo (not on its forks) and on the main branch.

References

Closes #55

How has this PR been tested?

Unfortunately, newly created scheduled runs are triggered only on the default branch (for security reasons), so this is difficult to test. I suggest to merge this today and check on Monday whether it was successful?

The changes are based on the nightly build of libsbml (where I know it "works").

An earlier attempt #91 at triggering the test workflow from a different workflow was

Why should this not run on other forks?

Is this a breaking change?

No.

Does this PR require an update to the documentation?

Added a sentence to the README of the CI subfolder.

Checklist:

alessandrofelder commented 8 months ago

Confirming this works as expected :tada: