mirror of
				https://gitea.publichub.eu/oscar.krause/fastapi-dls.git
				synced 2025-11-04 09:07:45 +00:00 
			
		
		
		
	refactored test pipeline to test different python versions
This commit is contained in:
		@@ -126,8 +126,8 @@ build:pacman:
 | 
			
		||||
    paths:
 | 
			
		||||
      - "*.pkg.tar.zst"
 | 
			
		||||
 | 
			
		||||
test:
 | 
			
		||||
  image: python:3.12-slim-bookworm
 | 
			
		||||
test:python:
 | 
			
		||||
  image: $IMAGE
 | 
			
		||||
  stage: test
 | 
			
		||||
  interruptible: true
 | 
			
		||||
  rules:
 | 
			
		||||
@@ -142,17 +142,19 @@ test:
 | 
			
		||||
    DATABASE: sqlite:///../app/db.sqlite
 | 
			
		||||
  parallel:
 | 
			
		||||
    matrix:
 | 
			
		||||
      - REQUIREMENTS:
 | 
			
		||||
          - 'requirements.txt'
 | 
			
		||||
#          - '.DEBIAN/requirements-bookworm-12.txt'
 | 
			
		||||
#          - '.DEBIAN/requirements-ubuntu-24.04.txt'
 | 
			
		||||
#          - '.DEBIAN/requirements-ubuntu-24.10.txt'
 | 
			
		||||
      - IMAGE:
 | 
			
		||||
#          - python:3.14-alpine
 | 
			
		||||
#          - python:3.13-alpine
 | 
			
		||||
          - python:3.12-alpine
 | 
			
		||||
#          - python:3.11-alpine
 | 
			
		||||
#          - python:3.10-alpine
 | 
			
		||||
#          - python:3.9-alpine
 | 
			
		||||
  before_script:
 | 
			
		||||
    - apt-get update && apt-get install -y python3-dev python3-pip python3-venv gcc
 | 
			
		||||
    - python3 -m venv venv
 | 
			
		||||
    - source venv/bin/activate
 | 
			
		||||
    - pip install --upgrade pip
 | 
			
		||||
    - pip install -r $REQUIREMENTS
 | 
			
		||||
    - pip install -r requirements.txt
 | 
			
		||||
    - pip install pytest pytest-cov pytest-custom_exit_code httpx
 | 
			
		||||
    - mkdir -p app/cert
 | 
			
		||||
    - openssl genrsa -out app/cert/instance.private.pem 2048
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user