UUDigitalHumanitieslab / I-analyzer

The great textmining tool that obviates all others
https://ianalyzer.hum.uu.nl
MIT License
7 stars 2 forks source link

Ignore paths for github workflows #1566

Closed lukavdplas closed 4 months ago

lukavdplas commented 4 months ago

The github workflows for unit tests are configured to run unit tests are run on every push. However, it is not necessary to re-run unit tests the only changes are in /documentation/*. Similarly, the backend tests don't need to be re-run if all changes are in /frontend/*; vice versa for the frontend tests.

Re-running tests doesn't cause any immediate problems, but it's a waste of time and energy.

Proposed solution

Configure ignore-paths on the github workflow. See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#onpushpull_requestpull_request_targetpathspaths-ignore

Possible complication

Not sure how this interacts with branch protections. If you make a PR that only updates the documentation, the test workflow would not be run, but we require that these checks pass to merge into develop.