cai4cai / torchsparsegradutils

A collection of utility functions to work with PyTorch sparse tensors
Apache License 2.0
24 stars 3 forks source link

Add basic github workflow for automated testing #10

Closed masadcv closed 1 year ago

masadcv commented 2 years ago

To add github workflows for automated testing with unittests + formating etc

tvercaut commented 1 year ago

@theo-barfoot : As discussed earlier, feel free to make a PR to activate Github Actions.

I would suggest staring from the example here: https://github.com/rbialon/flake8-annotations#example-usage

This would also address #8

theo-barfoot commented 1 year ago

I have now setup a basic github CI workflow on the main branch.

However, there are no GPU/CUDA based tests. I will look into setting this up and add the jax and cupy tests during automated testing.

@tvercaut Do I also need to run Black in my github workflow? Or is flake8 sufficient here?

tvercaut commented 1 year ago

Looks good to. It would be an overkill for such a repo to set up our own GPU-enabled CI runners.

flake8 is sufficient now.