microsoft / vision-explanation-methods

Methods for creating saliency maps for computer vision models.
https://vision-explanation-methods.readthedocs.io/en/latest/
MIT License
39 stars 12 forks source link

add CI to run tests on new PRs #13

Closed imatiach-msft closed 1 year ago

imatiach-msft commented 1 year ago

Description

Add CI github action to run the vision_explanation_methods tests for new PRs. The github action installs all test dependencies and the package in editable mode and then runs all tests in the tests folder. Note there were some test failures for macos and python 3.9 where the pretrained model did not make a detection so I have disabled those in the test matrix for now.

Checklist

codecov-commenter commented 1 year ago

Codecov Report

:exclamation: No coverage uploaded for pull request base (main@addaab8). Click here to learn what that means. The diff coverage is n/a.

@@           Coverage Diff           @@
##             main      #13   +/-   ##
=======================================
  Coverage        ?   93.28%           
=======================================
  Files           ?        6           
  Lines           ?      253           
  Branches        ?        0           
=======================================
  Hits            ?      236           
  Misses          ?       17           
  Partials        ?        0           
Flag Coverage Δ
unittests 93.28% <0.00%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.