mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-10-30 03:56:23 -05:00 
			
		
		
		
	Uses a change file action to filter only changed src/ files
This commit is contained in:
		 Trenton Holmes
					Trenton Holmes
				
			
				
					committed by
					
						 Johann Bauer
						Johann Bauer
					
				
			
			
				
	
			
			
			 Johann Bauer
						Johann Bauer
					
				
			
						parent
						
							f24373699e
						
					
				
				
					commit
					ea7a1012b9
				
			
							
								
								
									
										18
									
								
								.github/workflows/ci.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										18
									
								
								.github/workflows/ci.yml
									
									
									
									
										vendored
									
									
								
							| @@ -115,6 +115,8 @@ jobs: | ||||
|       - | ||||
|         name: Checkout | ||||
|         uses: actions/checkout@v2 | ||||
|         with: | ||||
|           fetch-depth: 2 | ||||
|       - | ||||
|         name: Install pipenv | ||||
|         run: pipx install pipenv | ||||
| @@ -139,10 +141,22 @@ jobs: | ||||
|         run: | | ||||
|           cd src/ | ||||
|           pipenv run pytest | ||||
|       - | ||||
|         name: Get changed files | ||||
|         id: changed-files-specific | ||||
|         uses: tj-actions/changed-files@v18.1 | ||||
|         with: | ||||
|           files: | | ||||
|             src/** | ||||
|       - | ||||
|         name: List all changed files | ||||
|         run: | | ||||
|           for file in ${{ steps.changed-files-specific.outputs.all_changed_files }}; do | ||||
|             echo "${file} was changed" | ||||
|           done | ||||
|       - | ||||
|         name: Publish coverage results | ||||
|         # Publish results for 3.9, and not for dependabot branches | ||||
|         if: matrix.python-version == '3.9' && !contains(github.ref, 'dependabot') | ||||
|         if: matrix.python-version == '3.9' && steps.changed-files-specific.outputs.any_changed == 'true' | ||||
|         env: | ||||
|           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||||
|         # https://github.com/coveralls-clients/coveralls-python/issues/251 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user