0 - Setting up the demo repository
To start, letโs set up the demo repository.
Fork and clone the repository
Fork the demo 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 branch step0
cd codecov-demo
git checkout -b step0
Install the dependencies
It is recommended that this is done in a virtual environment, here is one way to set one up:
pip install virtualenv
python3.11 -m venv env
source env/bin/activate
pip
install flask
and pytest-cov
then create your requirements.txt by running:
pip install flask
pip install pytest-cov
pip freeze --local > api/requirements.txt
Ensure your repository has the following structure.
--> tree
.
โโโ LICENSE
โโโ README.md
โโโ api
โโโ __init__.py
โโโ requirements.txt
1 directory, 4 files
Commit and merge your changes
Commit your changes by running
git add .
git commit -m 'step0: add python dependencies'
git push origin step0
Create a merge request on GitLab and merge the changes.
When opening merge requests, be sure to select your own repository as the target branch, or set your project's default target branch
Updated 4 months ago