Skip to content

Commit

Permalink
missing file
Browse files Browse the repository at this point in the history
  • Loading branch information
adefossez committed Sep 18, 2024
1 parent adc5aca commit e1f864e
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions scripts/run_ci_when_installed.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash

# This script is used to detect if moshi or moshi_mlx are installed, and run
# their CI only in that case!

package=$1
if python -c "from $package import models"; then
# package is installed, let's run the command
eval $2
else
echo "Package $package not installed, skipping the CI for it."
fi

0 comments on commit e1f864e

Please sign in to comment.