|  |  |  | @ -1,4 +1,4 @@ | 
			
		
	
		
			
				
					|  |  |  |  | name: Python application test | 
			
		
	
		
			
				
					|  |  |  |  | name: build | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | on: | 
			
		
	
		
			
				
					|  |  |  |  |   push: | 
			
		
	
	
		
			
				
					|  |  |  | @ -7,23 +7,36 @@ on: | 
			
		
	
		
			
				
					|  |  |  |  |     branches: [ main ] | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | jobs: | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |   build: | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     runs-on: ubuntu-latest | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     steps: | 
			
		
	
		
			
				
					|  |  |  |  |     - uses: actions/checkout@v2 | 
			
		
	
		
			
				
					|  |  |  |  |     - uses: actions/checkout@v3 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     - name: Setup Python | 
			
		
	
		
			
				
					|  |  |  |  |       uses: actions/setup-python@v4 | 
			
		
	
		
			
				
					|  |  |  |  |       with: | 
			
		
	
		
			
				
					|  |  |  |  |         python-version: '3.10' | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     - name: Set up Python 3.8 | 
			
		
	
		
			
				
					|  |  |  |  |       uses: actions/setup-python@v2 | 
			
		
	
		
			
				
					|  |  |  |  |     - name: Run Python unit tests | 
			
		
	
		
			
				
					|  |  |  |  |       run: python3 -u -m unittest unittesting/agent/swarms.py | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     - name: Verify that the Docker image for the action builds | 
			
		
	
		
			
				
					|  |  |  |  |       run: docker build . --file Dockerfile | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     - name: Integration test 1 | 
			
		
	
		
			
				
					|  |  |  |  |       uses: ./ | 
			
		
	
		
			
				
					|  |  |  |  |       with: | 
			
		
	
		
			
				
					|  |  |  |  |         python-version: 3.8 | 
			
		
	
		
			
				
					|  |  |  |  |         input-one: something | 
			
		
	
		
			
				
					|  |  |  |  |         input-two: true | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     - name: Install dependencies | 
			
		
	
		
			
				
					|  |  |  |  |       run: | | 
			
		
	
		
			
				
					|  |  |  |  |         python -m pip install --upgrade pip | 
			
		
	
		
			
				
					|  |  |  |  |         pip install -r requirements.txt | 
			
		
	
		
			
				
					|  |  |  |  |     - name: Integration test 2 | 
			
		
	
		
			
				
					|  |  |  |  |       uses: ./ | 
			
		
	
		
			
				
					|  |  |  |  |       with: | 
			
		
	
		
			
				
					|  |  |  |  |         input-one: something else | 
			
		
	
		
			
				
					|  |  |  |  |         input-two: false | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     - name: Run tests | 
			
		
	
		
			
				
					|  |  |  |  |       run: | | 
			
		
	
		
			
				
					|  |  |  |  |         python -m unittest unittesting/agent/swarms.py | 
			
		
	
		
			
				
					|  |  |  |  |     - name: Verify integration test results | 
			
		
	
		
			
				
					|  |  |  |  |       run: python3 -u -m unittest unittesting/agent/swarms.py |