Skip to content

Commit 8a40884

Browse files
committed
Add mac test
1 parent 4e6f035 commit 8a40884

File tree

1 file changed

+29
-1
lines changed

1 file changed

+29
-1
lines changed

.github/workflows/test.yml

+29-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
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
@@ -39,6 +39,12 @@ jobs:
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: |
@@ -51,6 +57,12 @@ jobs:
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 .
@@ -87,3 +99,19 @@ jobs:
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

0 commit comments

Comments
 (0)