Skip to content

Commit

Permalink
👷 ci: update cgm script
Browse files Browse the repository at this point in the history
  • Loading branch information
megasanjay committed Feb 12, 2025
1 parent 8d0bb55 commit e04d85e
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions scripts/cgm.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
cd ~/fairhub-pipeline
source ./venv/bin/activate
python3 ./cgm_pipeline.py --workers 8
#!/bin/bash

# Set the directory paths
PROJECT_DIR="/home/azureuser/fairhub-pipeline"
VENV_DIR="$PROJECT_DIR/.venv"
PYTHON_SCRIPT="$PROJECT_DIR/cgm_pipeline.py --workers 8"

# Go to project directory
cd "$PROJECT_DIR" || exit

# Activate virtual environment
source "$VENV_DIR/bin/activate"

# Run the Python script
python3 "$PYTHON_SCRIPT"

# Deactivate virtual environment
deactivate

0 comments on commit e04d85e

Please sign in to comment.