Update tests.yml
This commit is contained in:
		
							
								
								
									
										25
									
								
								.github/workflows/tests.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										25
									
								
								.github/workflows/tests.yml
									
									
									
									
										vendored
									
									
								
							@@ -41,8 +41,8 @@ jobs:
 | 
				
			|||||||
          name: workspace
 | 
					          name: workspace
 | 
				
			||||||
          path: artefacts/workspace.tar.gz
 | 
					          path: artefacts/workspace.tar.gz
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  test:
 | 
					  test-on-arm:
 | 
				
			||||||
    name: Run Tests
 | 
					    name: Run Tests on Raspberry Pi OS
 | 
				
			||||||
    needs: clone-setup-install
 | 
					    needs: clone-setup-install
 | 
				
			||||||
    runs-on: ubuntu-latest
 | 
					    runs-on: ubuntu-latest
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -56,18 +56,25 @@ jobs:
 | 
				
			|||||||
        run: |
 | 
					        run: |
 | 
				
			||||||
          tar -xzf workspace.tar.gz
 | 
					          tar -xzf workspace.tar.gz
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      - name: Run Tests
 | 
					      - name: Run Tests on Raspberry Pi OS
 | 
				
			||||||
        env:
 | 
					        uses: pguyot/arm-runner-action@v2
 | 
				
			||||||
          OPENWEATHERMAP_API_KEY: ${{ secrets.OPENWEATHERMAP_API_KEY }}
 | 
					        with:
 | 
				
			||||||
          SAMPLE_ICAL_URL: ${{ secrets.SAMPLE_ICAL_URL }}
 | 
					          # Set the base_image to the desired Raspberry Pi OS version
 | 
				
			||||||
          TEST_ICAL_URL: ${{ secrets.TEST_ICAL_URL }}
 | 
					          base_image: raspios_lite:latest
 | 
				
			||||||
          TODOIST_API_KEY: ${{ secrets.TODOIST_API_KEY }}
 | 
					          # Set the commands to run the tests
 | 
				
			||||||
        run: |
 | 
					          commands: |
 | 
				
			||||||
            source venv/bin/activate
 | 
					            source venv/bin/activate
 | 
				
			||||||
            cd inkycal/tests
 | 
					            cd inkycal/tests
 | 
				
			||||||
            wget https://raw.githubusercontent.com/aceinnolab/Inkycal/assets/tests/settings.json
 | 
					            wget https://raw.githubusercontent.com/aceinnolab/Inkycal/assets/tests/settings.json
 | 
				
			||||||
            for f in *.py; do python3 "$f"; done
 | 
					            for f in *.py; do python3 "$f"; done
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      - name: Upload Raspberry Pi OS Image
 | 
				
			||||||
 | 
					        if: success()  # Only upload the image if the tests were successful
 | 
				
			||||||
 | 
					        uses: actions/upload-artifact@v2
 | 
				
			||||||
 | 
					        with:
 | 
				
			||||||
 | 
					          name: raspberrypi_image
 | 
				
			||||||
 | 
					          path: my-release-image.img.xz
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  generate-docs:
 | 
					  generate-docs:
 | 
				
			||||||
    name: Generate Docs
 | 
					    name: Generate Docs
 | 
				
			||||||
    needs: clone-setup-install
 | 
					    needs: clone-setup-install
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user