Update torch.export test file (#1211) #6717
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | name: Build | |
| on: | |
| push: | |
| branches: [ '**' ] | |
| tags-ignore: [ '**' ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| build: | |
| name: Build | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [ macos-latest, ubuntu-latest, windows-latest ] | |
| steps: | |
| - name: Clone Git repository | |
| uses: actions/checkout@v4 | |
| - name: Install Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: latest | |
| - name: Install Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: 3.x | |
| - name: Install Packages | |
| run: npm run install | |
| - name: Validate | |
| run: npm run validate | |
| - name: Build Python Server | |
| run: npm run build python | |
| - name: Build Electron | |
| shell: bash | |
| run: | | |
| npx electron-builder install-app-deps | |
| case "${{ matrix.os }}" in | |
| macos*) | |
| npm run build electron mac | |
| ;; | |
| ubuntu*) | |
| sudo apt-get install rpm --yes | |
| npm run build electron linux | |
| npx electron-builder --linux snap --x64 --publish never | |
| ;; | |
| windows*) | |
| npm run build electron windows | |
| ;; | |
| esac | |
| analyze: | |
| name: Analyze | |
| runs-on: ubuntu-latest | |
| permissions: | |
| security-events: write | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| language: [ 'javascript', 'python' ] | |
| steps: | |
| - name: Clone Git repository | |
| uses: actions/checkout@v4 | |
| - name: Initialize CodeQL | |
| uses: github/codeql-action/init@v3 | |
| with: | |
| languages: ${{ matrix.language }} | |
| - name: Autobuild | |
| uses: github/codeql-action/autobuild@v3 | |
| - name: Perform CodeQL Analysis | |
| uses: github/codeql-action/analyze@v3 |