yuxiangw / autodp

autodp: A flexible and easy-to-use package for differential privacy
Apache License 2.0
269 stars 53 forks source link

Add GitHub Actions #16

Closed samellem closed 3 years ago

samellem commented 3 years ago

Add GitHub action (.github/workflows/ci.yml) to build and test AutoDP code. To facilitate this, add Bazel BUILD files and WORKSPACE definition. Also add configuration for running pytype checks over the repository and fill in a missing case in fdp_fdp_grad_to_approxdp from converter.py to allow those checks to pass.

samellem commented 3 years ago

See example successful run at https://github.com/samellem/autodp/actions/runs/685447186.

samellem commented 3 years ago

It's just explicitly testing 3.6 through 3.8, not disallowing 3.9. We could probably add 3.9 as well if you'd like.

yuxiangw commented 3 years ago

It's just explicitly testing 3.6 through 3.8, not disallowing 3.9. We could probably add 3.9 as well if you'd like.

Thanks. It is great that we are setting up Bazel. I think it is not necessary to add 3.9 for now (running over all different versions may make the CI somewhat slow).