mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-11-03 03:16:10 -06:00 
			
		
		
		
	Enables Codecov test reporting for the backend (#9295)
This commit is contained in:
		
							
								
								
									
										12
									
								
								.github/workflows/ci.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										12
									
								
								.github/workflows/ci.yml
									
									
									
									
										vendored
									
									
								
							@@ -167,7 +167,9 @@ jobs:
 | 
				
			|||||||
        uses: actions/upload-artifact@v4
 | 
					        uses: actions/upload-artifact@v4
 | 
				
			||||||
        with:
 | 
					        with:
 | 
				
			||||||
          name: backend-coverage-report
 | 
					          name: backend-coverage-report
 | 
				
			||||||
          path: coverage.xml
 | 
					          path: |
 | 
				
			||||||
 | 
					            coverage.xml
 | 
				
			||||||
 | 
					            junit.xml
 | 
				
			||||||
          retention-days: 7
 | 
					          retention-days: 7
 | 
				
			||||||
          if-no-files-found: error
 | 
					          if-no-files-found: error
 | 
				
			||||||
      -
 | 
					      -
 | 
				
			||||||
@@ -315,6 +317,14 @@ jobs:
 | 
				
			|||||||
          # future expansion
 | 
					          # future expansion
 | 
				
			||||||
          flags: backend
 | 
					          flags: backend
 | 
				
			||||||
          directory: src/
 | 
					          directory: src/
 | 
				
			||||||
 | 
					      -
 | 
				
			||||||
 | 
					        name: Upload test results to Codecov
 | 
				
			||||||
 | 
					        if: ${{ !cancelled() }}
 | 
				
			||||||
 | 
					        uses: codecov/test-results-action@v1
 | 
				
			||||||
 | 
					        with:
 | 
				
			||||||
 | 
					          token: ${{ secrets.CODECOV_TOKEN }}
 | 
				
			||||||
 | 
					          flags: backend
 | 
				
			||||||
 | 
					          directory: src/
 | 
				
			||||||
      -
 | 
					      -
 | 
				
			||||||
        name: Use Node.js 20
 | 
					        name: Use Node.js 20
 | 
				
			||||||
        uses: actions/setup-node@v4
 | 
					        uses: actions/setup-node@v4
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -329,6 +329,8 @@ addopts = [
 | 
				
			|||||||
  "--maxprocesses=16",
 | 
					  "--maxprocesses=16",
 | 
				
			||||||
  "--quiet",
 | 
					  "--quiet",
 | 
				
			||||||
  "--durations=50",
 | 
					  "--durations=50",
 | 
				
			||||||
 | 
					  "--junitxml=junit.xml",
 | 
				
			||||||
 | 
					  "-o junit_family=legacy",
 | 
				
			||||||
]
 | 
					]
 | 
				
			||||||
norecursedirs = [ "src/locale/", ".venv/", "src-ui/" ]
 | 
					norecursedirs = [ "src/locale/", ".venv/", "src-ui/" ]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user