Skip to content

armgit / camel

Public Imported from GitHub
0

🐫 CAMEL: The first and the best multi-agent framework. Finding the Scaling Law of Agents. https://www.camel-ai.org

Update build_package.yml

Wendong-Fanc8d6bbd7c00e
diff --git a/.github/workflows/build_package.yml b/.github/workflows/build_package.yml
index 10a97062f..dfdd5743f 100644
--- a/.github/workflows/build_package.yml
+++ b/.github/workflows/build_package.yml
@@ -15,14 +15,20 @@ jobs:
sudo apt-get clean
sudo rm -rf /var/lib/apt/lists/*
sudo rm -rf /tmp/*
+ sudo rm -rf $HOME/.cache/pip
+ df -h
- - name: set up python environment and install dependencies
- uses: ./.github/actions/camel_install
+ - name: Set up Python environment and install dependencies
+ uses: actions/setup-python@v3
with:
python-version: "3.9"
+ - name: Install dependencies
+ run: |
+ pip install poetry
+ poetry install
+
- name: Build
- shell: bash
run: poetry build
- name: Set up test environment
@@ -36,8 +42,9 @@ jobs:
pip install "${WHEEL_FILE}[all,test]"
- name: Test import
- shell: bash
- run: python -c "import camel"
+ run: |
+ source venv/bin/activate
+ python -c "import camel"
- name: Run tests with Pytest
env:
@@ -49,15 +56,17 @@ jobs:
GROQ_API_KEY: "${{ secrets.GROQ_API_KEY }}"
COHERE_API_KEY: "${{ secrets.COHERE_API_KEY }}"
HF_TOKEN: "${{ secrets.HF_TOKEN }}"
- AZURE_OPENAI_API_KEY: ${{ secrets.AZURE_OPENAI_API_KEY }}"
- AZURE_API_VERSION: ${{ secrets.AZURE_API_VERSION }}"
- AZURE_DEPLOYMENT_NAME: ${{ secrets.AZURE_DEPLOYMENT_NAME }}"
- AZURE_OPENAI_ENDPOINT: ${{ secrets.AZURE_OPENAI_ENDPOINT }}"
+ AZURE_OPENAI_API_KEY: "${{ secrets.AZURE_OPENAI_API_KEY }}"
+ AZURE_API_VERSION: "${{ secrets.AZURE_API_VERSION }}"
+ AZURE_DEPLOYMENT_NAME: "${{ secrets.AZURE_DEPLOYMENT_NAME }}"
+ AZURE_OPENAI_ENDPOINT: "${{ secrets.AZURE_OPENAI_ENDPOINT }}"
MISTRAL_API_KEY: "${{ secrets.MISTRAL_API_KEY }}"
NEO4J_URI: "${{ secrets.NEO4J_URI }}"
NEO4J_USERNAME: "${{ secrets.NEO4J_USERNAME }}"
NEO4J_PASSWORD: "${{ secrets.NEO4J_PASSWORD }}"
- run: pytest --fast-test-mode ./test
+ run: |
+ source venv/bin/activate
+ pytest --fast-test-mode ./test
- name: Clean up after build
if: always()
@@ -66,3 +75,4 @@ jobs:
sudo rm -rf /var/lib/apt/lists/*
sudo rm -rf /tmp/*
sudo rm -rf $HOME/.cache/pip
+ df -h