/Pytest-Actions-Demo

Demo of Python application testing with Pytest and automation with Github Actions

Primary LanguagePythonCreative Commons Zero v1.0 UniversalCC0-1.0

Python package

Here you can find a demo of a Python application with an automated testing using Github Actions service.

Anytime you want to start a new project in Python, feel free to use this code as a skeleton. Copy the contents to your repository and build your code upon it.

File demo.py contains a code for factorial() function.

File test_demo.py has a few tests to make sure the factorial() function works correctly.

To test the code from command line, run:

pytest -v

After every commit, visit the Actions tab and review the results of automated linting and testing.

Prerequisites:

pip3 install pytest flake8

Links: