jim-easterbrook / python-gphoto2

Python interface to libgphoto2
GNU Lesser General Public License v3.0
357 stars 59 forks source link

GitHub Action to lint Python code #115

Closed cclauss closed 3 years ago

cclauss commented 3 years ago

Travis CI is down so let's replace it with a GitHub Action... Output: https://github.com/cclauss/python-gphoto2/actions

https://packages.ubuntu.com/search?keywords=gphoto2 https://packages.ubuntu.com/search?keywords=swig

jim-easterbrook commented 3 years ago

You obviously know more about GitHub actions than I do, but I don't see how this replaces Travis. I set up the Travis stuff to test compiling the SWIG generated code with different C compilers (that I don't have on my local machine). This Python lint stuff just appears to be checking the example programs, unless I've missed something.

cclauss commented 3 years ago

I added the Travis CI commands and they all seem to pass. This Action is linting the entire repo so it should catch issues in any Python code throughout the repo.

jim-easterbrook commented 3 years ago

Thanks. Let me know when you've finished tweaking your changes and I'll merge it in.

cclauss commented 3 years ago

I am finished tweaking. I was trying to figure out why pytest --doctest-modules . is not finding gphoto2 but you can probably figure that out better than I can.