Skip to content

Commit 502aa7f

Browse files
author
zhoujiamei
committed
fix conda path
1 parent 4dc2722 commit 502aa7f

1 file changed

Lines changed: 11 additions & 3 deletions

File tree

.github/workflows/all_tests_metax.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,17 @@ jobs:
1818
platform: metax
1919
# Metax Environment Setup
2020
setup_commands: |
21-
source /opt/miniconda3/etc/profile.d/conda.sh
22-
conda activate flagscale-train
23-
export LD_LIBRARY_PATH=/usr/local/maca/lib:$LD_LIBRARY_PATH
21+
22+
if [ -f "/opt/conda/etc/profile.d/conda.sh" ]; then
23+
source /opt/conda/etc/profile.d/conda.sh
24+
25+
conda activate flagscale-train || echo "Using default conda environment"
26+
fi
27+
28+
export LD_LIBRARY_PATH=/usr/local/maca/lib:/opt/maca/lib:$LD_LIBRARY_PATH
29+
30+
python3 --version
31+
which python3
2432
2533
all_tests:
2634
needs: run_tests

0 commit comments

Comments
 (0)