jpetzke / AutoGPT-YouTube

A plugin for AutoGPT that allows various operations on YouTube, such as downloading Videos
MIT License
128 stars 23 forks source link

Added an integration test for plugin Installation #17

Closed Peeeekay closed 1 year ago

Peeeekay commented 1 year ago

Hey! Great job with the plugin!

I have recently added integration tests to the standard repository that ensure that the plugins install as expected. I have created a PR for your repository with the similar integration test. As I am not an admin here I can't trigger the workflow but it works like - https://github.com/h4ck3rk3y/Auto-GPT-Crypto-Plugin/actions/runs/4959559330/jobs/8873833979?pr=1

if you(author) create a PR or someone else creates a PR it will try running that branch against Auto-GPT to ensure that the plugin works as expected

Disclaimer - I am working on a tool called Kurtosis! The same tool that is used in the ci.yml I added. With Kurtosis running AutoGPT is as simple as -

kurtosis run github.com/kurtosis-tech/autogpt-package --enclave autogpt '{"OPENAI_API_KEY": "YOUR_API_KEY_HERE", "ALLOWLISTED_PLUGINS": "AutoGPT_YouTube"}' kurtosis service shell autogpt autogpt --exec "python -m autogpt" Kurtosis takes care of downloading the plugin for you & setting up the backend (you could have passed in"MEMORY_BACKEND": "weaviate" and we would have spun it up for you)

Here is our AutoGPT-Package

Adding support for a new plugin to Kurtosis is as simple as adding a line here

jpetzke commented 1 year ago

I never used this before, is there anything else to do now? And how to exactly use it?

Peeeekay commented 1 year ago

Hi @jpetzke, thanks for merging this! You do need to do anything else - you should see a github action that runs autogpt-package with your plugin and we test whether it works as expected for all the PRs against main branch. We automated and simplified the steps of setting up and running AutoGPT anywhere; you can check out some our other use-cases it can help automate here

We saw that you also have Instagram plugin, we would encourage you to test it out and add that for instagram plugin as well; you just need to add your plugin name here: https://github.com/kurtosis-tech/autogpt-package/blob/main/plugins.star#L21 and create a similar file .github/workflows/test-plugin-installation.yml and replace "ALLOWLISTED_PLUGINS": "AutoGPT_YouTube" with ALLOWLISTED_PLUGINS": "AutoGPT_Instagram"