mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-11-03 22:55:43 +00:00 
			
		
		
		
	refactor envs
This commit is contained in:
		
							
								
								
									
										17
									
								
								.github/workflows/coverage.yaml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										17
									
								
								.github/workflows/coverage.yaml
									
									
									
									
										vendored
									
									
								
							@@ -8,14 +8,6 @@ on:
 | 
				
			|||||||
    types:
 | 
					    types:
 | 
				
			||||||
      - completed
 | 
					      - completed
 | 
				
			||||||
 | 
					
 | 
				
			||||||
jobs:
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  # Run tests on SQLite database
 | 
					 | 
				
			||||||
  # These tests are used for code coverage analysis
 | 
					 | 
				
			||||||
  coverage:
 | 
					 | 
				
			||||||
    runs-on: ubuntu-latest
 | 
					 | 
				
			||||||
    if: ${{ github.event.workflow_run.conclusion == 'success' }}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
env:
 | 
					env:
 | 
				
			||||||
  GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
 | 
					  GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
 | 
				
			||||||
  INVENTREE_DB_NAME: './test_db.sqlite'
 | 
					  INVENTREE_DB_NAME: './test_db.sqlite'
 | 
				
			||||||
@@ -24,6 +16,15 @@ jobs:
 | 
				
			|||||||
  INVENTREE_MEDIA_ROOT: ./media
 | 
					  INVENTREE_MEDIA_ROOT: ./media
 | 
				
			||||||
  INVENTREE_STATIC_ROOT: ./static
 | 
					  INVENTREE_STATIC_ROOT: ./static
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					jobs:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  # Run tests on SQLite database
 | 
				
			||||||
 | 
					  # These tests are used for code coverage analysis
 | 
				
			||||||
 | 
					  coverage:
 | 
				
			||||||
 | 
					    runs-on: ubuntu-latest
 | 
				
			||||||
 | 
					    if: ${{ github.event.workflow_run.conclusion == 'success' }}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    steps:
 | 
					    steps:
 | 
				
			||||||
      - name: Checkout Code
 | 
					      - name: Checkout Code
 | 
				
			||||||
        uses: actions/checkout@v2
 | 
					        uses: actions/checkout@v2
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										13
									
								
								.github/workflows/postgresql.yaml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										13
									
								
								.github/workflows/postgresql.yaml
									
									
									
									
										vendored
									
									
								
							@@ -8,12 +8,6 @@ on:
 | 
				
			|||||||
    types:
 | 
					    types:
 | 
				
			||||||
      - completed
 | 
					      - completed
 | 
				
			||||||
 | 
					
 | 
				
			||||||
jobs:
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  test:
 | 
					 | 
				
			||||||
    runs-on: ubuntu-latest
 | 
					 | 
				
			||||||
    if: ${{ github.event.workflow_run.conclusion == 'success' }}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
env:
 | 
					env:
 | 
				
			||||||
  # Database backend configuration
 | 
					  # Database backend configuration
 | 
				
			||||||
  INVENTREE_DB_ENGINE: django.db.backends.postgresql
 | 
					  INVENTREE_DB_ENGINE: django.db.backends.postgresql
 | 
				
			||||||
@@ -27,6 +21,13 @@ jobs:
 | 
				
			|||||||
  INVENTREE_STATIC_ROOT: ./static
 | 
					  INVENTREE_STATIC_ROOT: ./static
 | 
				
			||||||
  INVENTREE_CACHE_HOST: localhost
 | 
					  INVENTREE_CACHE_HOST: localhost
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					jobs:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  test:
 | 
				
			||||||
 | 
					    runs-on: ubuntu-latest
 | 
				
			||||||
 | 
					    if: ${{ github.event.workflow_run.conclusion == 'success' }}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    services:
 | 
					    services:
 | 
				
			||||||
      postgres:
 | 
					      postgres:
 | 
				
			||||||
        image: postgres
 | 
					        image: postgres
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user