Update action.yml
This commit is contained in:
+16
-11
@@ -39,10 +39,13 @@ runs:
|
||||
- name: Install Pixi & project dependencies
|
||||
shell: bash
|
||||
run: |
|
||||
echo "🔧 Installing Pixi..."
|
||||
curl -fsSL https://pixi.sh/install.sh | bash > pixi-download.log 2>&1 || {
|
||||
echo "❌ Pixi download failed"
|
||||
cat pixi-download.log
|
||||
OUTPUT_DIR="outputs"
|
||||
LOG_FILE="${OUTPUT_DIR}/pixi.log" # Chemin du fichier de log dans outputs
|
||||
mkdir -p $OUTPUT_DIR
|
||||
|
||||
echo "🔧 Installing Pixi..." >> $LOG_FILE
|
||||
curl -fsSL https://pixi.sh/install.sh | bash >> $LOG_FILE 2>&1 || {
|
||||
echo "❌ Pixi download failed" >> $LOG_FILE
|
||||
exit 1
|
||||
}
|
||||
|
||||
@@ -50,19 +53,21 @@ runs:
|
||||
export PATH="$HOME/.pixi/bin:$PATH"
|
||||
|
||||
if [ ! -f "pixi.toml" ]; then
|
||||
echo "❌ Missing pixi.toml at repo root : please add one to use Pixi"
|
||||
echo "❌ Missing pixi.toml at repo root: please add one to use Pixi" >> $LOG_FILE
|
||||
echo "Exit Code: 1" >> $LOG_FILE
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "📦 Installing dependencies from pixi.toml..."
|
||||
pixi install > pixi-install.log 2>&1 || {
|
||||
echo "❌ Pixi project dependencies failed"
|
||||
cat pixi-install.log
|
||||
echo "📦 Installing dependencies from pixi.toml..." >> $LOG_FILE
|
||||
pixi install >> $LOG_FILE 2>&1 || {
|
||||
echo "❌ Pixi project dependencies failed" >> $LOG_FILE
|
||||
echo "Exit Code: 1" >> $LOG_FILE
|
||||
exit 1
|
||||
}
|
||||
|
||||
echo "✅ Pixi installed and environment created"
|
||||
pixi list
|
||||
echo "✅ Pixi installed and environment created" >> $LOG_FILE
|
||||
pixi list >> $LOG_FILE
|
||||
echo "Exit Code: 0" >> $LOG_FILE
|
||||
|
||||
- name: Install Python test/report tools
|
||||
shell: bash
|
||||
|
||||
Reference in New Issue
Block a user