File tree Expand file tree Collapse file tree 1 file changed +29
-1
lines changed
Expand file tree Collapse file tree 1 file changed +29
-1
lines changed Original file line number Diff line number Diff line change 1717 strategy :
1818 fail-fast : false
1919 matrix :
20- os : [ubuntu-latest, windows-latest]
20+ os : [ubuntu-latest, windows-latest, macos-latest ]
2121
2222 steps :
2323 - uses : actions/checkout@v4
3939 iwr -useb https://astral.sh/uv/install.ps1 | iex
4040 echo "$HOME\.cargo\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
4141
42+ - name : Install uv (macOS)
43+ if : runner.os == 'macOS'
44+ run : |
45+ curl -LsSf https://astral.sh/uv/install.sh | sh
46+ echo "$HOME/.cargo/bin" >> $GITHUB_PATH
47+
4248 - name : Create virtual environment (Linux)
4349 if : runner.os == 'Linux'
4450 run : |
5157 uv venv
5258 echo "$PWD\.venv\Scripts" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
5359
60+ - name : Create virtual environment (macOS)
61+ if : runner.os == 'macOS'
62+ run : |
63+ uv venv
64+ echo "$PWD/.venv/bin" >> $GITHUB_PATH
65+
5466 - name : Install package
5567 run : |
5668 uv pip install -e .
8799 Write-Host $output
88100 exit 1
89101 }
102+
103+ - name : Verify CLI works (macOS)
104+ if : runner.os == 'macOS'
105+ run : |
106+ # Run the help command and capture output
107+ output=$(llm --help)
108+
109+ # Check if the output contains expected help text
110+ if [[ "$output" == *"Run LangChain agent with MCP tools"* ]]; then
111+ echo "CLI help command works correctly"
112+ else
113+ echo "CLI help command failed to produce expected output"
114+ echo "Actual output:"
115+ echo "$output"
116+ exit 1
117+ fi
You can’t perform that action at this time.
0 commit comments