You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

test_kubernetes.commandline_code_executor.md 1.1 kB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. # Test Environment for autogen.coding.kubernetes.PodCommandLineCodeExecutor
  2. To test PodCommandLineCodeExecutor, the following environment is required.
  3. - kubernetes cluster config file
  4. - autogen package
  5. ## kubernetes cluster config file
  6. kubernetes cluster config file, kubeconfig file's location should be set on environment variable `KUBECONFIG` or
  7. It must be located in the .kube/config path of your home directory.
  8. For Windows, `C:\Users\<<user>>\.kube\config`,
  9. For Linux or MacOS, place the kubeconfig file in the `/home/<<user>>/.kube/config` directory.
  10. ## package install
  11. Clone autogen github repository for package install and testing
  12. Clone the repository with the command below.
  13. before contribution
  14. ```sh
  15. git clone -b k8s-code-executor https://github.com/questcollector/autogen.git
  16. ```
  17. after contribution
  18. ```sh
  19. git clone https://github.com/microsoft/autogen.git
  20. ```
  21. install autogen with kubernetes >= 27.0.2
  22. ```sh
  23. cd autogen
  24. pip install .[kubernetes] -U
  25. ```
  26. ## test execution
  27. Perform the test with the following command
  28. ```sh
  29. pytest test/coding/test_kubernetes_commandline_code_executor.py
  30. ```