File tree 1 file changed +29
-1
lines changed
1 file changed +29
-1
lines changed Original file line number Diff line number Diff line change 17
17
strategy :
18
18
fail-fast : false
19
19
matrix :
20
- os : [ubuntu-latest, windows-latest]
20
+ os : [ubuntu-latest, windows-latest, macos-latest ]
21
21
22
22
steps :
23
23
- uses : actions/checkout@v4
39
39
iwr -useb https://astral.sh/uv/install.ps1 | iex
40
40
echo "$HOME\.cargo\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
41
41
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
+
42
48
- name : Create virtual environment (Linux)
43
49
if : runner.os == 'Linux'
44
50
run : |
51
57
uv venv
52
58
echo "$PWD\.venv\Scripts" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
53
59
60
+ - name : Create virtual environment (macOS)
61
+ if : runner.os == 'macOS'
62
+ run : |
63
+ uv venv
64
+ echo "$PWD/.venv/bin" >> $GITHUB_PATH
65
+
54
66
- name : Install package
55
67
run : |
56
68
uv pip install -e .
87
99
Write-Host $output
88
100
exit 1
89
101
}
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