kraina-ai / srai

Spatial Representations for Artificial Intelligence - a Python library toolkit for geospatial machine learning focused on creating embeddings for downstream tasks
https://kraina-ai.github.io/srai/
Apache License 2.0
207 stars 16 forks source link

CI: make actions locally testable #407

Open Calychas opened 10 months ago

Calychas commented 10 months ago

One can use https://github.com/nektos/act to test workflows locally, but the may need some tweaking to make them work.

See also https://www.redhat.com/en/blog/testing-github-actions-locally for additional improvements (e.g. mocking gh api)

Motivation: Currently to test gh releases I needed to create a fork https://github.com/kraina-ai/srai-sandbox, which is a bit obrzydliwe (eng. disgusting). Other actions need commits to remote repo and can take quite some time to get a response.

Calychas commented 5 months ago

See also how the playground approach is done in https://github.com/process-analytics/GitHub-Actions-playground