mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-11-04 07:05:41 +00:00 
			
		
		
		
	more env variables
This commit is contained in:
		
							
								
								
									
										14
									
								
								.github/workflows/pr_checks.yaml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										14
									
								
								.github/workflows/pr_checks.yaml
									
									
									
									
										vendored
									
									
								
							@@ -15,6 +15,8 @@ env:
 | 
				
			|||||||
  python_version: 3.7
 | 
					  python_version: 3.7
 | 
				
			||||||
  node_version: 16
 | 
					  node_version: 16
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  server_start_sleep: 60
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
 | 
					  GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
 | 
				
			||||||
  INVENTREE_DB_ENGINE: sqlite3
 | 
					  INVENTREE_DB_ENGINE: sqlite3
 | 
				
			||||||
  INVENTREE_DB_NAME: inventree
 | 
					  INVENTREE_DB_NAME: inventree
 | 
				
			||||||
@@ -128,6 +130,9 @@ jobs:
 | 
				
			|||||||
    needs: pep_style
 | 
					    needs: pep_style
 | 
				
			||||||
    runs-on: ubuntu-latest
 | 
					    runs-on: ubuntu-latest
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    env:
 | 
				
			||||||
 | 
					      wrapper_name: inventree-python
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    steps:
 | 
					    steps:
 | 
				
			||||||
      - name: Checkout Code
 | 
					      - name: Checkout Code
 | 
				
			||||||
        uses: actions/checkout@v2
 | 
					        uses: actions/checkout@v2
 | 
				
			||||||
@@ -140,14 +145,13 @@ jobs:
 | 
				
			|||||||
          invoke migrate
 | 
					          invoke migrate
 | 
				
			||||||
      - name: Download Python Code
 | 
					      - name: Download Python Code
 | 
				
			||||||
        run: |
 | 
					        run: |
 | 
				
			||||||
          git clone --depth 1 https://github.com/inventree/inventree-python ./inventree-python
 | 
					          git clone --depth 1 https://github.com/inventree/${{ env.wrapper_name }} ./${{ env.wrapper_name }}
 | 
				
			||||||
      - name: Start Server
 | 
					      - name: Start Server
 | 
				
			||||||
        run: |
 | 
					        run: |
 | 
				
			||||||
          invoke import-records -f ./inventree-python/test/test_data.json
 | 
					          invoke import-records -f ./${{ env.wrapper_name }}/test/test_data.json
 | 
				
			||||||
          invoke server -a 127.0.0.1:8000 &
 | 
					          invoke server -a 127.0.0.1:8000 &
 | 
				
			||||||
          sleep 60
 | 
					          sleep ${{ env.server_start_sleep }}
 | 
				
			||||||
      - name: Run Tests
 | 
					      - name: Run Tests
 | 
				
			||||||
        run: |
 | 
					        run: |
 | 
				
			||||||
          cd inventree-python
 | 
					          cd ${{ env.wrapper_name }}
 | 
				
			||||||
          invoke test
 | 
					          invoke test
 | 
				
			||||||
  
 | 
					 | 
				
			||||||
		Reference in New Issue
	
	Block a user