0 - Setting up the demo repository
To start, let’s set up the demo repository.
Fork and clone the repository
Fork thedemo repository from GitLab. It is strongly recommended that you fork the repository to your personal GitLab account.
Clone your new repository to your local machine.
Checkout a new branch
After you have cloned the repository, checkout a new branchstep0
cd codecov-demogit checkout -b step0Install the dependencies
It is recommended that this is done in avirtual environment, here is one way to set one up:
pip install virtualenvpython3.11 -m venv envsource env/bin/activatepipinstallflask andpytest-cov then create your requirements.txt by running:
pip install flaskpip install pytest-covpip freeze --local > api/requirements.txtEnsure your repository has the following structure.
--> tree.├── LICENSE├── README.md└── api ├── __init__.py └── requirements.txt1 directory, 4 filesCommit and merge your changes
Commit your changes by running
git add .git commit -m 'step0: add python dependencies'git push origin step0Create amerge request on GitLab andmerge the changes.
When opening merge requests, be sure to select your own repository as the target branch, orset your project's default target branch
Updated 19 days ago