Mojo-Numerics-and-Algorithms-group / NuMojo

NuMojo is a library for numerical computing in Mojo 🔥 similar to numpy in Python.
Apache License 2.0
112 stars 15 forks source link

Adding workflows with unit tests and linting #95

Closed sandstromviktor closed 2 months ago

sandstromviktor commented 2 months ago

Dear Mojo-Numerics-And-Algorithms-group.

This PR is a first contribution to, what i hope will be, a strong CI/CD pipeline in the future.

I've added two workflows:

  1. Running unit tests using Ubuntu and MacOS based runners
  2. Running a pre-commit hook to make sure that all files in the PR are linted correctly (according to mojo format)

These flows runs automatically when a PR is created, and can be run manually.

Any suggestions for improvement will be considered. Thanks!

NOTE: I've linted the whole library, hence a bunch of files that are changed slightly.