- Update nlopt submodule
git submodule update --remote # if there are changes git add extern/ git commit -m "Update nlopt submodule"
[Optional]If there is a need, update theci/nlopt_manylinux2014_x64_64.Dockerfileimage. This is used to build the linux images- This should be done in
image/*branch as the github actionmanylinux-image.ymlwill automatically update the image in dockerhub on push. - Whenever there is a upgrade to Python's minor version, it is likely that the manylinux image will not have that version. Go to https://quay.io/repository/pypa/manylinux2014_x86_64?tab=tags and change the image version accordingly.
- This should be done in
- Update
.github/workflows/build.yamlif necessary- Search for lines:
python-version,CIBW_BUILD
- Search for lines:
- There are already tests in the github workflows to test that
pip install nloptworks. But none to test the module specifically- Spin up a docker image and run the sample code
-
docker container run -it --rm --entrypoint bash python:3.10-slim-buster pip install nlopt apt-get update apt-get install curl -y curl https://raw.githubusercontent.com/DanielBok/nlopt-python/master/test_scripts/sample_test_script.py --output test.py python test.py