Update test workflows
This commit is contained in:
parent
eae4b6fb3c
commit
10fee97902
|
@ -5,19 +5,29 @@ on: [pull_request]
|
||||||
jobs:
|
jobs:
|
||||||
quality:
|
quality:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
env:
|
||||||
|
UV_HTTP_TIMEOUT: 600 # max 10min to install deps
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3.1.0
|
- uses: actions/checkout@v2
|
||||||
- name: Set up Python 3.9
|
- name: Set up Python
|
||||||
uses: actions/setup-python@v3
|
uses: actions/setup-python@v2
|
||||||
with:
|
with:
|
||||||
python-version: 3.10
|
python-version: 3.10
|
||||||
cache: 'pip'
|
|
||||||
cache-dependency-path: 'setup.py'
|
|
||||||
- name: Install Python dependencies
|
- name: Install Python dependencies
|
||||||
run: pip install -e .[quality]
|
run: pip install -e .[quality]
|
||||||
|
|
||||||
- name: Run Quality check
|
- name: Run Quality check
|
||||||
run: make quality
|
run: make quality
|
||||||
- name: Check if failure
|
- name: Check if failure
|
||||||
if: ${{ failure() }}
|
if: ${{ failure() }}
|
||||||
run: |
|
run: |
|
||||||
echo "Quality check failed. Please ensure the right dependency versions are installed with 'pip install -e .[quality]' and rerun 'make style; make quality;'" >> $GITHUB_STEP_SUMMARY
|
echo "Quality check failed. Please ensure the right dependency versions are installed with 'pip install -e .[quality]' and rerun 'make style; make quality;'" >> $GITHUB_STEP_SUMMARY
|
||||||
|
|
||||||
|
- name: Run Style check
|
||||||
|
run: make style
|
||||||
|
- name: Check if failure
|
||||||
|
if: ${{ failure() }}
|
||||||
|
run: |
|
||||||
|
echo "Style check failed. Please ensure the right dependency versions are installed with 'pip install -e .[quality]' and rerun 'make style; make quality;'" >> $GITHUB_STEP_SUMMARY
|
|
@ -0,0 +1,18 @@
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
|
||||||
|
name: Secret Leaks
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
trufflehog:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
- name: Secret Scanning
|
||||||
|
uses: trufflesecurity/trufflehog@main
|
|
@ -284,7 +284,8 @@ Out - Final answer: ByteDance/AnimateDiff-Lightning
|
||||||
Out[20]: 'ByteDance/AnimateDiff-Lightning'
|
Out[20]: 'ByteDance/AnimateDiff-Lightning'
|
||||||
```
|
```
|
||||||
|
|
||||||
Read more on tools in the [dedicated tutorial](./tutorials/tools#what-is-a-tool-and-how-to-build-one)
|
> [!TIP]
|
||||||
|
> Read more on tools in the [dedicated tutorial](./tutorials/tools#what-is-a-tool-and-how-to-build-one).
|
||||||
|
|
||||||
## Multi-agents
|
## Multi-agents
|
||||||
|
|
||||||
|
|
|
@ -136,7 +136,6 @@ def format_prompt_with_managed_agents_descriptions(
|
||||||
if agent_descriptions_placeholder is None:
|
if agent_descriptions_placeholder is None:
|
||||||
agent_descriptions_placeholder = "{{managed_agents_descriptions}}"
|
agent_descriptions_placeholder = "{{managed_agents_descriptions}}"
|
||||||
if agent_descriptions_placeholder not in prompt_template:
|
if agent_descriptions_placeholder not in prompt_template:
|
||||||
print("PROMPT TEMPLLL", prompt_template)
|
|
||||||
raise ValueError(
|
raise ValueError(
|
||||||
f"Provided prompt template does not contain the managed agents descriptions placeholder '{agent_descriptions_placeholder}'"
|
f"Provided prompt template does not contain the managed agents descriptions placeholder '{agent_descriptions_placeholder}'"
|
||||||
)
|
)
|
||||||
|
@ -964,8 +963,6 @@ class CodeAgent(MultiStepAgent):
|
||||||
console.print(
|
console.print(
|
||||||
"[bold red]Code execution failed due to an unauthorized import. Consider passing said import under additional_authorized_imports when initializing your CodeAgent."
|
"[bold red]Code execution failed due to an unauthorized import. Consider passing said import under additional_authorized_imports when initializing your CodeAgent."
|
||||||
)
|
)
|
||||||
else:
|
|
||||||
console.print("PLACEHOLDER" + str(e))
|
|
||||||
raise AgentExecutionError(error_msg)
|
raise AgentExecutionError(error_msg)
|
||||||
|
|
||||||
truncated_output = truncate_content(str(output))
|
truncated_output = truncate_content(str(output))
|
||||||
|
|
|
@ -838,7 +838,6 @@ parts_with_5_set_count[['Quantity', 'SetCount']].values[1]
|
||||||
import pandas as pd
|
import pandas as pd
|
||||||
|
|
||||||
df = pd.DataFrame.from_dict({"AtomicNumber": [111, 104, 105], "ok": [0, 1, 2]})
|
df = pd.DataFrame.from_dict({"AtomicNumber": [111, 104, 105], "ok": [0, 1, 2]})
|
||||||
print("HH0")
|
|
||||||
|
|
||||||
# Filter the DataFrame to get only the rows with outdated atomic numbers
|
# Filter the DataFrame to get only the rows with outdated atomic numbers
|
||||||
filtered_df = df.loc[df['AtomicNumber'].isin([104])]
|
filtered_df = df.loc[df['AtomicNumber'].isin([104])]
|
||||||
|
|
Loading…
Reference in New Issue