For the most up-to-date instructions see the github actions test.yml workflow
- Ensure conda and mamba are installed. Install mambaforge if you're otherwise not sure which one to pick.
mamba create -n conda-lock-dev pip pytest-cov pytest-xdist
conda activate conda-lock-dev
python -m pip install -r requirements-dev.txt
pip install -e . --force-reinstall
Run the tests to ensure that everything is running correctly. Due to the nature of this project, it hits remote webservers regularly so some tests occasionally fail. This is a normal part of conda-lock development. If you're not sure if your env is borked or the remote webserver is just being flaky, run the tests again. If you're still not sure you can open an issue about.
pytest
Whilst not strictly necessary; the CI run using github actions will run pre-commit in order to reduce development friction you may want to install the pre-commit hooks:
pre-commit install