This repo is based in the following articles.
- Automated Python Unit Testing Made Easy with Pytest and GitHub Actions
- Automating Build and Tests for Python
- Python (Python 3.11.5)
check your python with
python3 --version or
python --version
Open your terminal and type in
git clone https://github.com/Jackson-Vieira/pytest-github-ci-example
cd pytest-github-ci-example
# linux
python3 -m venv venv
source venv/bin/active
pip install -r requirements.txt
To run the Unit Tests
pytest -v -s