rjalexa / myproject

Python CI test

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

myproject: a demo python repository with GitHub actions for code quality

Live status:

Testing Codecov Linting FormattingOpen issues

Tooling

linting: pylint Formatter my badge


Python Continuous Integration with GitHub Actions demo

This minimal example is to show how to setup a project directory for a python project structuring:

  • all the code under the src directory, with each subdirectory being a package, and under it one or more module files, each containing one or more functions/classes
  • Code is evaluated with pylint (pylint src)
  • all the tests are under the tests directory to be picked up by pytest and each test imports the needed modules and functions.
  • pytest will also perform a coverage test to be sent to Codecov
  • the workflow automating all of this is in the .github/workflows directory and is triggered by a push to the master branch

About

Python CI test

License:MIT License


Languages

Language:Python 100.0%