Skip to content

Commit 0b7d313

Browse files
committed
o Print outputs and add a simple assert
1 parent bcc99cf commit 0b7d313

File tree

1 file changed

+25
-6
lines changed

1 file changed

+25
-6
lines changed

.github/workflows/docker_gdrp_parsl.yml

+25-6
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ jobs:
99
- uses: actions/checkout@v4
1010
- name: Install missing libraries
1111
run: |
12-
apt-get update && apt-get install -y libxrender1 libxext6
12+
apt-get update && apt-get install -y libxrender1 libxext6 tree #added tree here
1313
- name: Install and check
1414
run: |
1515
which python
1616
python --version
1717
which conda
1818
conda env list
19-
eval "$(conda shell.bash hook)" # Ensure Conda is properly initialized
19+
eval "$(conda shell.bash hook)"
2020
conda activate graphdrp
2121
pip install -e .
2222
export PYTHONPATH=$PYTHONPATH:.
@@ -28,14 +28,33 @@ jobs:
2828
conda list -n graphdrp
2929
python -c "import sys; print(sys.path)"
3030
cd $BASE_DIR/workflows/csa/parsl/
31-
pip install cryptography==37.0.1
31+
pip install cryptography==37.0.1
3232
pip install pyopenssl==22.0.0
3333
pip install cffi==1.14.5
3434
pip install parsl numpy pandas scikit-learn pyyaml
3535
mv /app/GraphDRP/csa_data .
3636
echo "Preprocess started"
3737
ls -ltrh
38-
python workflow_preprocess.py --config_file ./parsl_csa_githubactions.ini
38+
python workflow_preprocess.py --config_file ./parsl_csa_githubactions.ini
3939
echo "Preprocess done"
40-
python workflow_csa.py --config_file ./parsl_csa_githubactions.ini
41-
echo "Parsl CSA done"
40+
python workflow_csa.py --config_file ./parsl_csa_githubactions.ini
41+
echo "Parsl CSA done"
42+
echo "Tree of ./parsl_csa_exp3:"
43+
tree ./parsl_csa_exp3
44+
echo "Content of ./parsl_csa_exp3/infer/CCLE-CCLE/split_0/test_scores.json:"
45+
cat ./parsl_csa_exp3/infer/CCLE-CCLE/split_0/test_scores.json
46+
echo "Content of ./parsl_csa_exp3/infer/CCLE-CCLE/split_1/test_scores.json:"
47+
cat ./parsl_csa_exp3/infer/CCLE-CCLE/split_1/test_scores.json
48+
rmse_line=$(grep '"rmse":' ./parsl_csa_exp3/infer/CCLE-CCLE/split_1/test_scores.json)
49+
rmse_value=$(echo "$rmse_line" | awk -F ': ' '{print $2}' | tr -d ',')
50+
echo "RMSE for split_1: $rmse_value"
51+
if [[ $(echo "$rmse_value < 0.3" | bc -l) -eq 1 ]]; then
52+
echo "Assertion passed: RMSE ($rmse_value) < 0.3"
53+
else
54+
echo "Assertion failed: RMSE ($rmse_value) >= 0.3"
55+
exit 1 # Fail the workflow
56+
fi
57+
echo "Content of ./parsl_csa_exp3/infer/CCLE-gCSI/split_0/test_scores.json:"
58+
cat ./parsl_csa_exp3/infer/CCLE-gCSI/split_0/test_scores.json
59+
echo "Content of ./parsl_csa_exp3/infer/gCSI-CCLE/split_0/test_scores.json:"
60+
cat ./parsl_csa_exp3/infer/gCSI-CCLE/split_0/test_scores.json

0 commit comments

Comments
 (0)