parent
							
								
									e4865ecb4a
								
							
						
					
					
						commit
						fe31b5ce4c
					
				@ -0,0 +1,34 @@
 | 
				
			|||||||
 | 
					name: Run Examples Script
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					on:
 | 
				
			||||||
 | 
					  push:
 | 
				
			||||||
 | 
					    branches: [ main ]
 | 
				
			||||||
 | 
					  pull_request:
 | 
				
			||||||
 | 
					    branches: [ main ]
 | 
				
			||||||
 | 
					  schedule:
 | 
				
			||||||
 | 
					    # Runs at 3:00 AM UTC every day
 | 
				
			||||||
 | 
					    - cron: '0 3 * * *'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					jobs:
 | 
				
			||||||
 | 
					  run-examples:
 | 
				
			||||||
 | 
					    runs-on: ubuntu-latest
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    steps:
 | 
				
			||||||
 | 
					    - uses: actions/checkout@v4
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    - name: Setup Python
 | 
				
			||||||
 | 
					      uses: actions/setup-python@v5
 | 
				
			||||||
 | 
					      with:
 | 
				
			||||||
 | 
					        python-version: '3.9'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    - name: Install dependencies
 | 
				
			||||||
 | 
					      run: |
 | 
				
			||||||
 | 
					        pip install -r requirements.txt
 | 
				
			||||||
 | 
					        # Assuming your script might also need pytest and swarms
 | 
				
			||||||
 | 
					        pip install pytest
 | 
				
			||||||
 | 
					        pip install swarms
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    - name: Make Script Executable and Run
 | 
				
			||||||
 | 
					      run: |
 | 
				
			||||||
 | 
					        chmod +x ./swarms/scripts/run_examples.sh
 | 
				
			||||||
 | 
					        ./swarms/scripts/run_examples.sh
 | 
				
			||||||
					Loading…
					
					
				
		Reference in new issue