To test PodCommandLineCodeExecutor, the following environment is required.
kubernetes cluster config file, kubeconfig file's location should be set on environment variable KUBECONFIG or
It must be located in the .kube/config path of your home directory.
For Windows, C:\Users\<<user>>\.kube\config,
For Linux or MacOS, place the kubeconfig file in the /home/<<user>>/.kube/config directory.
Clone autogen github repository for package install and testing
Clone the repository with the command below.
before contribution
git clone -b k8s-code-executor https://github.com/questcollector/autogen.git
after contribution
git clone https://github.com/microsoft/autogen.git
install autogen with kubernetes >= 27.0.2
cd autogen
pip install .[kubernetes] -U
Perform the test with the following command
pytest test/coding/test_kubernetes_commandline_code_executor.py