arkhn / dsPrivacy

A DataShield Differential Privacy Library
Apache License 2.0
6 stars 0 forks source link

Add basic configuration for Python development #14

Closed LaRiffle closed 2 years ago

LaRiffle commented 2 years ago

Fixes

Fixes #12

Description

I added the standard Python config file (based on Poetry, beware), together with a minimal README

I have added the GitHub actions for linting, testing and beta project management.

To test the test action, a unit test for covariance as been added.

NB : for some obscure reason I had to put back all the __init__ files to have the test action run

Definition of Done

github-actions[bot] commented 2 years ago

ai_template coverage

ai-template coverage report
FileStmtsMissCoverMissing
inst/python/dp/custom_dp
   covariance_custom.py31197%35
inst/python/dp/pydp_wrapper
   count_PyDP.py440%1–6
   max_PyDP.py440%1–6
   mean_PyDP.py440%1–8
   median_PyDP.py440%1–6
   min_PyDP.py440%1–6
   standard_deviation_PyDP.py440%1–8
   sum_PyDP.py440%1–6
   variance_PyDP.py440%1–8
TOTAL633348% 

Tests Skipped Failures Errors Time
3 0 :zzz: 0 :x: 0 :fire: 0.384s :stopwatch:
github-actions[bot] commented 2 years ago

ai_template coverage

ai-template coverage report
FileStmtsMissCoverMissing
inst/python/dp/custom_dp
   covariance_custom.py31197%35
inst/python/dp/pydp_wrapper
   count_PyDP.py440%1–6
   max_PyDP.py440%1–6
   mean_PyDP.py440%1–8
   median_PyDP.py440%1–6
   min_PyDP.py440%1–6
   standard_deviation_PyDP.py440%1–8
   sum_PyDP.py440%1–6
   variance_PyDP.py440%1–8
TOTAL633348% 

Tests Skipped Failures Errors Time
3 0 :zzz: 0 :x: 0 :fire: 0.424s :stopwatch:
github-actions[bot] commented 2 years ago

ai_template coverage

ai-template coverage report
FileStmtsMissCoverMissing
inst/python/dp/custom_dp
   covariance_custom.py31197%35
inst/python/dp/pydp_wrapper
   count_PyDP.py440%1–6
   max_PyDP.py440%1–6
   mean_PyDP.py440%1–8
   median_PyDP.py440%1–6
   min_PyDP.py440%1–6
   standard_deviation_PyDP.py440%1–8
   sum_PyDP.py440%1–6
   variance_PyDP.py440%1–8
TOTAL633348% 

Tests Skipped Failures Errors Time
3 0 :zzz: 0 :x: 0 :fire: 0.379s :stopwatch: