forked from open-webui/open-webui
		
	refac: format backend ci
This commit is contained in:
		
							parent
							
								
									6c2eb814ed
								
							
						
					
					
						commit
						b391ad12ae
					
				
					 1 changed files with 14 additions and 9 deletions
				
			
		
							
								
								
									
										23
									
								
								.github/workflows/format-backend.yaml
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										23
									
								
								.github/workflows/format-backend.yaml
									
										
									
									
										vendored
									
									
								
							|  | @ -1,29 +1,34 @@ | ||||||
| name: Python CI | name: Python CI | ||||||
|  | 
 | ||||||
| on: | on: | ||||||
|   push: |   push: | ||||||
|     branches: ['main'] |     branches: ['main'] | ||||||
|   pull_request: |   pull_request: | ||||||
|  | 
 | ||||||
| jobs: | jobs: | ||||||
|   build: |   build: | ||||||
|     name: 'Format Backend' |     name: 'Format Backend' | ||||||
|     env: |  | ||||||
|       PUBLIC_API_BASE_URL: '' |  | ||||||
|     runs-on: ubuntu-latest |     runs-on: ubuntu-latest | ||||||
|  | 
 | ||||||
|     strategy: |     strategy: | ||||||
|       matrix: |       matrix: | ||||||
|         node-version: |         python-version: [3.11] | ||||||
|           - latest | 
 | ||||||
|     steps: |     steps: | ||||||
|       - uses: actions/checkout@v4 |       - uses: actions/checkout@v4 | ||||||
|       - name: Use Python | 
 | ||||||
|         uses: actions/setup-python@v4 |       - name: Set up Python | ||||||
|       - name: Use Bun |         uses: actions/setup-python@v2 | ||||||
|         uses: oven-sh/setup-bun@v1 |         with: | ||||||
|  |           python-version: ${{ matrix.python-version }} | ||||||
|  | 
 | ||||||
|       - name: Install dependencies |       - name: Install dependencies | ||||||
|         run: | |         run: | | ||||||
|           python -m pip install --upgrade pip |           python -m pip install --upgrade pip | ||||||
|           pip install black |           pip install black | ||||||
|  | 
 | ||||||
|       - name: Format backend |       - name: Format backend | ||||||
|         run: bun run format:backend |         run: black . --exclude "/venv/" | ||||||
|  | 
 | ||||||
|       - name: Check for changes after format |       - name: Check for changes after format | ||||||
|         run: git diff --exit-code |         run: git diff --exit-code | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Timothy J. Baek
						Timothy J. Baek