Skip to content

Commit 73e5f4e

Browse files
authored
Test viash being present locally, not on path, simplify install command (#852)
1 parent adda9db commit 73e5f4e

1 file changed

Lines changed: 6 additions & 10 deletions

File tree

.github/workflows/weekly_download_test.yml

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,25 +20,21 @@ jobs:
2020
echo "Testing viash download from https://dl.viash.io"
2121
2222
# Download viash
23-
if [[ "${{ matrix.os }}" =~ ^ubuntu.*$ ]]; then
24-
curl -fsSL https://dl.viash.io | bash
25-
elif [[ "${{ matrix.os }}" =~ ^macos.*$ ]]; then
26-
curl -fsSL https://dl.viash.io | bash
27-
fi
23+
curl -fsSL https://dl.viash.io | bash
2824
2925
# Verify installation
30-
if command -v viash &> /dev/null; then
31-
echo "✅ viash command is available"
32-
viash --version
26+
if [ -f "./viash" ]; then
27+
echo "✅ viash binary exists locally"
28+
./viash --version
3329
echo "✅ viash version check successful"
3430
else
35-
echo "❌ viash command not found after installation"
31+
echo "❌ viash binary not found in local directory after installation"
3632
exit 1
3733
fi
3834
3935
# Test basic functionality
4036
echo "Testing basic viash functionality..."
41-
viash --help > /dev/null
37+
./viash --help > /dev/null
4238
echo "✅ viash help command works"
4339
4440
- name: Notify download test failure

0 commit comments

Comments
 (0)