3939 - name : Upload dependencies artifact
4040 uses : actions/upload-artifact@v4
4141 with :
42- name : dependencies-python
42+ name : dependencies-${{ matrix.setup }}
4343 path : requirements-freeze.txt
4444 compression-level : 0
4545 - name : Prepare Spider dataset
9797 source .venv/bin/activate
9898 cd examples/calc_x
9999 ../../scripts/restart_ray.sh
100+ sleep 5
100101 PYTHONUNBUFFERED=1 python calc_agent.py &
101102 bash train_ci.sh
102103 pkill -f calc_agent.py && echo "SIGTERM sent to calc_agent.py" || echo "No calc_agent.py process found"
@@ -105,15 +106,27 @@ jobs:
105106 sleep 5
106107 done
107108 echo "calc_agent.py has finished."
109+ sleep 10
108110 shell : bash
109111 env :
110112 WANDB_API_KEY : ${{ secrets.WANDB_API_KEY }}
113+ id : calc_x_train
114+
115+ - name : Validate Calc-X training
116+ run : |
117+ set -ex
118+ . .venv/bin/activate
119+ python scripts/validate_example_wandb.py ${{ steps.calc_x_train.outputs.project_name }} ${{ steps.calc_x_train.outputs.run_name }}
120+ env :
121+ WANDB_API_KEY : ${{ secrets.WANDB_API_KEY }}
122+
111123 - name : Spider training
112124 run : |
113125 set -ex
114126 source .venv/bin/activate
115127 cd examples/spider
116128 ../../scripts/restart_ray.sh
129+ sleep 5
117130 PYTHONUNBUFFERED=1 python sql_agent.py --trainer.n-workers 10 &
118131 bash train_ci.sh
119132 pkill -f sql_agent.py && echo "SIGTERM sent to sql_agent.py" || echo "No sql_agent.py process found"
@@ -122,11 +135,22 @@ jobs:
122135 sleep 5
123136 done
124137 echo "sql_agent.py has finished."
138+ sleep 10
125139 shell : bash
126140 env :
127141 VERL_API_BASE : http://localhost:9991/
128142 WANDB_API_KEY : ${{ secrets.WANDB_API_KEY }}
143+ id : spider_train
129144 if : success() || failure()
145+
146+ - name : Validate Spider training
147+ run : |
148+ set -ex
149+ . .venv/bin/activate
150+ python scripts/validate_example_wandb.py ${{ steps.spider_train.outputs.project_name }} ${{ steps.spider_train.outputs.run_name }}
151+ env :
152+ WANDB_API_KEY : ${{ secrets.WANDB_API_KEY }}
153+
130154 - name : Cleanup
131155 run : ./scripts/cleanup.sh
132156 if : success() || failure()
0 commit comments