diff --git a/.github/workflows/test_onnxruntime_gpu.yml b/.github/workflows/test_onnxruntime_gpu.yml index 4160bdbdc1..06d147b51c 100644 --- a/.github/workflows/test_onnxruntime_gpu.yml +++ b/.github/workflows/test_onnxruntime_gpu.yml @@ -2,16 +2,15 @@ name: ONNX Runtime GPU / Python - Test on: workflow_dispatch: - push: - branches: - - main + schedule: + - cron: 0 7 * * * # every day at 7am UTC pull_request: branches: - main types: - opened - - reopened - labeled + - reopened - unlabeled - synchronize @@ -24,7 +23,6 @@ jobs: if: ${{ (github.event_name == 'push') || (github.event_name == 'workflow_dispatch') || - contains( github.event.pull_request.labels.*.name, 'gpu') || contains(github.event.pull_request.labels.*.name, 'onnxruntime-gpu') }} @@ -42,7 +40,7 @@ jobs: - name: Setup Python uses: actions/setup-python@v5 with: - python-version: 3.8 + python-version: "3.9" - name: Install dependencies run: | diff --git a/.github/workflows/test_onnxruntime_slow.yml b/.github/workflows/test_onnxruntime_slow.yml index d64809d114..f098f2d996 100644 --- a/.github/workflows/test_onnxruntime_slow.yml +++ b/.github/workflows/test_onnxruntime_slow.yml @@ -1,10 +1,18 @@ -name: ONNX Runtime / Python - Slow Test +name: ONNX Runtime Slow / Python - Test on: workflow_dispatch: schedule: - # every day at 7am - - cron: 0 7 * * * + - cron: 0 7 * * * # every day at 7am UTC + pull_request: + branches: + - main + types: + - opened + - labeled + - reopened + - unlabeled + - synchronize concurrency: group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} @@ -12,22 +20,22 @@ concurrency: jobs: build: - strategy: - fail-fast: false - matrix: - python-version: ['3.9'] - os: [ubuntu-20.04] + if: ${{ + (github.event_name == 'push') || + (github.event_name == 'workflow_dispatch') || + contains(github.event.pull_request.labels.*.name, 'onnxruntime-slow') + }} - runs-on: ${{ matrix.os }} + runs-on: ubuntu-20.04 steps: - name: Checkout uses: actions/checkout@v4 - - name: Setup Python ${{ matrix.python-version }} + - name: Setup Python 3.9 uses: actions/setup-python@v5 with: - python-version: ${{ matrix.python-version }} + python-version: "3.9" - name: Install dependencies run: | diff --git a/.github/workflows/test_onnxruntime_training.yml b/.github/workflows/test_onnxruntime_training.yml index 4b8ab20a1d..25962b90e2 100644 --- a/.github/workflows/test_onnxruntime_training.yml +++ b/.github/workflows/test_onnxruntime_training.yml @@ -2,16 +2,15 @@ name: ONNX Runtime Training / Python - Test on: workflow_dispatch: - push: - branches: - - main + schedule: + - cron: 0 7 * * * # every day at 7am UTC pull_request: branches: - main types: - opened - - reopened - labeled + - reopened - unlabeled - synchronize @@ -20,11 +19,10 @@ concurrency: cancel-in-progress: true jobs: - do-the-job: + build: if: ${{ (github.event_name == 'push') || (github.event_name == 'workflow_dispatch') || - contains( github.event.pull_request.labels.*.name, 'training') || contains( github.event.pull_request.labels.*.name, 'onnxruntime-training') }} @@ -42,7 +40,7 @@ jobs: - name: Setup Python uses: actions/setup-python@v5 with: - python-version: 3.8 + python-version: "3.9" - name: Install dependencies env: @@ -54,10 +52,6 @@ jobs: pip install --no-cache-dir evaluate absl-py rouge_score seqeval sacrebleu nltk scikit-learn pip install .[tests,onnxruntime-gpu] - - name: Replace opencv-python with opencv-python-headless - run: | - pip uninstall -y opencv-python && pip install opencv-python-headless - - name: Test with pytest run: | RUN_SLOW=1 pytest tests/onnxruntime/training/nightly_test_trainer.py --durations=0 -s -vvvv