mirror of
				https://git.collinwebdesigns.de/oscar.krause/fastapi-dls.git
				synced 2025-10-26 18:05:28 +03:00 
			
		
		
		
	fixed test_coverage (fail on matrix)
This commit is contained in:
		
							parent
							
								
									21d052523f
								
							
						
					
					
						commit
						d37d96dc34
					
				@ -242,10 +242,22 @@ semgrep-sast:
 | 
			
		||||
    - if: $CI_PIPELINE_SOURCE == "merge_request_event"
 | 
			
		||||
 | 
			
		||||
test_coverage:
 | 
			
		||||
  extends: test
 | 
			
		||||
#  extends: test
 | 
			
		||||
  image: python:3.11-slim-bookworm
 | 
			
		||||
  allow_failure: true
 | 
			
		||||
  stage: test
 | 
			
		||||
  rules:
 | 
			
		||||
    - if: $CI_PIPELINE_SOURCE == "merge_request_event"
 | 
			
		||||
  variables:
 | 
			
		||||
    DATABASE: sqlite:///../app/db.sqlite
 | 
			
		||||
  before_script:
 | 
			
		||||
    - apt-get update && apt-get install -y python3-dev gcc
 | 
			
		||||
    - pip install -r requirements.txt
 | 
			
		||||
    - pip install pytest httpx
 | 
			
		||||
    - mkdir -p app/cert
 | 
			
		||||
    - openssl genrsa -out app/cert/instance.private.pem 2048
 | 
			
		||||
    - openssl rsa -in app/cert/instance.private.pem -outform PEM -pubout -out app/cert/instance.public.pem
 | 
			
		||||
    - cd test
 | 
			
		||||
  script:
 | 
			
		||||
    - pip install pytest pytest-cov
 | 
			
		||||
    - coverage run -m pytest main.py
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user