Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
IlyasMoutawwakil committed Jan 10, 2025
1 parent 1b7e652 commit cebe6bf
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 28 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/test_onnxruntime_gpu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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')
}}

Expand All @@ -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: |
Expand Down
30 changes: 19 additions & 11 deletions .github/workflows/test_onnxruntime_slow.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,41 @@
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 }}
cancel-in-progress: true

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: |
Expand Down
16 changes: 5 additions & 11 deletions .github/workflows/test_onnxruntime_training.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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')
}}

Expand All @@ -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:
Expand All @@ -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
Expand Down

0 comments on commit cebe6bf

Please sign in to comment.