* check push connection * enable UT workflow logics for LLM * test fix * add licenses * test fix according to suggestions * test fix * update changes
		
			
				
	
	
		
			63 lines
		
	
	
	
		
			2.1 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			63 lines
		
	
	
	
		
			2.1 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
name: LLM Unit Tests Basic on Windows
 | 
						|
 | 
						|
# Cancel previous runs in the PR when you push new commits
 | 
						|
concurrency:
 | 
						|
  group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }}
 | 
						|
  cancel-in-progress: true
 | 
						|
 | 
						|
# Controls when the action will run. 
 | 
						|
on:
 | 
						|
  # Triggers the workflow on push or pull request events but only for the main branch
 | 
						|
  push:
 | 
						|
    branches: [ main ]
 | 
						|
    paths:
 | 
						|
      - 'python/llm/**'
 | 
						|
      - '.github/workflows/llm_unit_tests_basic_windows.yml'
 | 
						|
  pull_request:
 | 
						|
    branches: [ main ]
 | 
						|
    paths:
 | 
						|
      - 'python/llm/**'
 | 
						|
      - '.github/workflows/llm_unit_tests_basic_windows.yml'
 | 
						|
 | 
						|
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
 | 
						|
jobs:
 | 
						|
  llm-unit-test-basic-windows:
 | 
						|
    runs-on: ${{ matrix.os }}
 | 
						|
    strategy:
 | 
						|
      fail-fast: false
 | 
						|
      matrix:
 | 
						|
        os: ["windows-latest"]
 | 
						|
        python-version: ["3.9"]
 | 
						|
    steps:
 | 
						|
      - uses: actions/checkout@v2
 | 
						|
      - name: Set up Python ${{ matrix.python-version }}
 | 
						|
        uses: actions/setup-python@v2
 | 
						|
        with:
 | 
						|
          python-version: ${{ matrix.python-version }}
 | 
						|
      - name: Install dependencies
 | 
						|
        run: |
 | 
						|
          python -m pip install --upgrade pip
 | 
						|
          python -m pip install --upgrade setuptools==58.0.4
 | 
						|
          python -m pip install --upgrade wheel          
 | 
						|
 | 
						|
      - name: Run LLM-init test
 | 
						|
        shell: bash
 | 
						|
        run: |
 | 
						|
          bash python/llm/dev/release_default_windows.sh default false
 | 
						|
          pip install -i https://pypi.python.org/simple python/llm/dist/bigdl_llm*.whl          
 | 
						|
        env:
 | 
						|
          ANALYTICS_ZOO_ROOT: ${{ github.workspace }}
 | 
						|
      
 | 
						|
      - name: Run LLM naive installation test
 | 
						|
        shell: bash
 | 
						|
        run: |
 | 
						|
          bash python/llm/dev/release_default_windows.sh default false
 | 
						|
          pip install -i https://pypi.python.org/simple python/llm/dist/bigdl_llm*.whl
 | 
						|
          pip install pytest
 | 
						|
          pip install numpy
 | 
						|
          pip install torch
 | 
						|
          pip install transformers
 | 
						|
          pip install sentencepiece
 | 
						|
          bash python/llm/test/run-llm-basic-tests.sh          
 | 
						|
        env:
 | 
						|
          ANALYTICS_ZOO_ROOT: ${{ github.workspace }}
 |