mirror of
				https://gitea.publichub.eu/oscar.krause/fastapi-dls.git
				synced 2025-11-04 00:26:07 +00:00 
			
		
		
		
	only run test matrix when "app" or "test" changes
This commit is contained in:
		@@ -129,9 +129,13 @@ test:
 | 
				
			|||||||
  image: python:3.11-slim-bookworm
 | 
					  image: python:3.11-slim-bookworm
 | 
				
			||||||
  stage: test
 | 
					  stage: test
 | 
				
			||||||
  rules:
 | 
					  rules:
 | 
				
			||||||
    - if: $CI_COMMIT_BRANCH
 | 
					    - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
 | 
				
			||||||
    - if: $CI_COMMIT_TAG
 | 
					    - if: $CI_COMMIT_TAG
 | 
				
			||||||
    - if: $CI_PIPELINE_SOURCE == "merge_request_event"
 | 
					    - if: $CI_PIPELINE_SOURCE == "merge_request_event"
 | 
				
			||||||
 | 
					    - if: $CI_COMMIT_BRANCH && $CI_COMMIT_BRANCH != $CI_DEFAULT_BRANCH
 | 
				
			||||||
 | 
					      changes:
 | 
				
			||||||
 | 
					        - app/**/*
 | 
				
			||||||
 | 
					        - test/**/*
 | 
				
			||||||
  variables:
 | 
					  variables:
 | 
				
			||||||
    DATABASE: sqlite:///../app/db.sqlite
 | 
					    DATABASE: sqlite:///../app/db.sqlite
 | 
				
			||||||
  parallel:
 | 
					  parallel:
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user