mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-11-04 07:05:41 +00:00 
			
		
		
		
	Use env variables rather than custom ci scripts
This commit is contained in:
		
							
								
								
									
										5
									
								
								.github/workflows/coverage.yaml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										5
									
								
								.github/workflows/coverage.yaml
									
									
									
									
										vendored
									
									
								
							@@ -1,6 +1,6 @@
 | 
			
		||||
# Perform CI checks, and calculate code coverage
 | 
			
		||||
 | 
			
		||||
name: Code Coverage
 | 
			
		||||
name: SQLite
 | 
			
		||||
 | 
			
		||||
on: ["push", "pull_request"]
 | 
			
		||||
 | 
			
		||||
@@ -10,10 +10,11 @@ jobs:
 | 
			
		||||
  # These tests are used for code coverage analysis
 | 
			
		||||
  coverage:
 | 
			
		||||
    runs-on: ubuntu-latest
 | 
			
		||||
 | 
			
		||||
    env:
 | 
			
		||||
      GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
 | 
			
		||||
      INVENTREE_DB_NAME: './test_db.sqlite'
 | 
			
		||||
      INVENTREE_DB_ENGINE: sqlite3
 | 
			
		||||
      INVENTREE_DB_ENGINE: django.db.backends.sqlite3
 | 
			
		||||
 | 
			
		||||
    steps:
 | 
			
		||||
      - name: Checkout Code
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										15
									
								
								.github/workflows/mariadb.yaml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										15
									
								
								.github/workflows/mariadb.yaml
									
									
									
									
										vendored
									
									
								
							@@ -7,6 +7,15 @@ jobs:
 | 
			
		||||
  test:
 | 
			
		||||
    runs-on: ubuntu-latest
 | 
			
		||||
 | 
			
		||||
    env:
 | 
			
		||||
      # Database backend configuration
 | 
			
		||||
      INVENTREE_DB_ENGINE: django.db.backends.mysql
 | 
			
		||||
      INVENTREE_DB_USER: root
 | 
			
		||||
      INVENTREE_DB_PASSWORD: password
 | 
			
		||||
      INVENTREE_DB_HOST: '127.0.0.1'
 | 
			
		||||
      INVENTREE_DB_PORT: 3306
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
    services:
 | 
			
		||||
      mariadb:
 | 
			
		||||
        image: mariadb:latest
 | 
			
		||||
@@ -32,6 +41,6 @@ jobs:
 | 
			
		||||
        pip3 install mysqlclient
 | 
			
		||||
        invoke install
 | 
			
		||||
    - name: Run Tests
 | 
			
		||||
        run: |
 | 
			
		||||
          cd InvenTree
 | 
			
		||||
          python3 manage.py test --settings=InvenTree.ci_mysql
 | 
			
		||||
      run: |
 | 
			
		||||
        cd InvenTree
 | 
			
		||||
        python3 manage.py test --settings=InvenTree.ci_mysql
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										8
									
								
								.github/workflows/mysql.yaml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										8
									
								
								.github/workflows/mysql.yaml
									
									
									
									
										vendored
									
									
								
							@@ -9,6 +9,14 @@ jobs:
 | 
			
		||||
  test:
 | 
			
		||||
    runs-on: ubuntu-latest
 | 
			
		||||
 | 
			
		||||
    env:
 | 
			
		||||
      # Database backend configuration
 | 
			
		||||
      INVENTREE_DB_ENGINE: django.db.backends.mysql
 | 
			
		||||
      INVENTREE_DB_USER: root
 | 
			
		||||
      INVENTREE_DB_PASSWORD: password
 | 
			
		||||
      INVENTREE_DB_HOST: '127.0.0.1'
 | 
			
		||||
      INVENTREE_DB_PORT: 3306
 | 
			
		||||
 | 
			
		||||
    services:
 | 
			
		||||
      mysql:
 | 
			
		||||
        image: mysql:latest
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										9
									
								
								.github/workflows/postgresql.yaml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										9
									
								
								.github/workflows/postgresql.yaml
									
									
									
									
										vendored
									
									
								
							@@ -9,6 +9,15 @@ jobs:
 | 
			
		||||
  test:
 | 
			
		||||
    runs-on: ubuntu-latest
 | 
			
		||||
 | 
			
		||||
    env:
 | 
			
		||||
      # Database backend configuration
 | 
			
		||||
      INVENTREE_DB_ENGINE: django.db.backends.postgresql
 | 
			
		||||
      INVENTREE_DB_USER: inventree
 | 
			
		||||
      INVENTREE_DB_PASSWORD: password
 | 
			
		||||
      INVENTREE_DB_HOST: '127.0.0.1'
 | 
			
		||||
      INVENTREE_DB_PORT: 5432
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
    services:
 | 
			
		||||
      postgres:
 | 
			
		||||
        image: postgres
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user