Pytest启动所有用例 #62
Workflow file for this run
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: Torch NPU Upstream v2.7.1 Trigger | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - master | |
| - 'release/**' | |
| paths: | |
| - '.github/workflows/torch-npu-upstream-test-trigger.yml' | |
| - '.github/workflows/_torch-npu-upstream*.yml' | |
| - '.github/scripts/*.py' | |
| - 'test_upstream/**' | |
| pull_request: | |
| paths: | |
| - '.github/workflows/torch-npu-upstream-test-trigger.yml' | |
| - '.github/workflows/_torch-npu-upstream*.yml' | |
| - '.github/scripts/*.py' | |
| - 'test_upstream/**' | |
| schedule: | |
| - cron: '0 22 * * 1' # UTC 22:00 (Beijing time next day 06:00), every Monday | |
| workflow_dispatch: | |
| inputs: | |
| python_version: | |
| description: 'Python version (default 3.11)' | |
| required: false | |
| default: '3.11' | |
| type: string | |
| pytorch_version: | |
| description: 'PyTorch version (default 2.7.1)' | |
| required: false | |
| default: '2.7.1' | |
| type: string | |
| distributed_shards: | |
| description: 'Number of shards for distributed tests (default 2)' | |
| required: false | |
| default: '2' | |
| type: string | |
| regular_shards: | |
| description: 'Number of shards for regular tests (default 5)' | |
| required: false | |
| default: '5' | |
| type: string | |
| test_files: | |
| description: 'Test files to run directly (comma-separated, e.g., "test_meta.py,test_nn.py"). Skip shard assignment if set.' | |
| required: false | |
| default: '' | |
| type: string | |
| jobs: | |
| trigger_test: | |
| uses: ./.github/workflows/_torch-npu-upstream-test.yml | |
| with: | |
| python_version: ${{ github.event.inputs.python_version || '3.11' }} | |
| pytorch_version: ${{ github.event.inputs.pytorch_version || '2.7.1' }} | |
| distributed_shards: ${{ github.event.inputs.distributed_shards || '2' }} | |
| regular_shards: ${{ github.event.inputs.regular_shards || '5' }} | |
| test_files: ${{ github.event.inputs.test_files || '' }} |