need a locally installed python version 3.10.12. recommended to use pyenv to install that.
poetry env use ~/.pyenv/versions/3.10.12/bin/python
poetry install
- Run a local instance of cockraoch db using:
sh deploy/local_test.sh cr-pull # required only first time
sh deploy/local_test.sh cr-local-start
sh deploy/local_test.sh cr-stop # when testing is over
Now the tests which require this local instance will run. They can be run individually in pycharm or using the command:
poetry run pytest
The following commands can be used:
poetry run sh deploy/local_test.sh check-format
poetry run sh deploy/local_test.sh format
we use bumpversion to make version updates. The following commands can be used:
poetry run bumpversion --config-file=./deploy/.bumpversion.cfg <option>
The option can be:
- patch: to update the patch version
- minor: to update the minor version
- major: to update the major version
- release: to update the release version
- also add
--tag
to create a git tag when releasing
- also add