Skip to content

Commit c91ec63

Browse files
committed
ODSC-52249. Run unit tests only for source code (no docs and files form root)
1 parent 22b4400 commit c91ec63

File tree

3 files changed

+17
-0
lines changed

3 files changed

+17
-0
lines changed

.github/workflows/run-unittests-default_setup.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ on:
44
workflow_dispatch:
55
pull_request:
66
branches: [ "main" ]
7+
paths:
8+
- "ads/**"
9+
- "!ads/opctl/operator/**"
10+
- "!ads/feature_store/**"
11+
- "pyproject.toml"
12+
713

814
# Cancel in progress workflows on pull_requests.
915
# https://docs.github.com/en/actions/using-jobs/using-concurrency#example-using-a-fallback-value

.github/workflows/run-unittests-py38-cov-report.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ on:
44
workflow_dispatch:
55
pull_request:
66
branches: [ "main" ]
7+
paths:
8+
- "ads/**"
9+
- "!ads/opctl/operator/**"
10+
- "!ads/feature_store/**"
11+
- "pyproject.toml"
712

813
# Cancel in progress workflows on pull_requests.
914
# https://docs.github.com/en/actions/using-jobs/using-concurrency#example-using-a-fallback-value

.github/workflows/run-unittests-py39-py310.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@ name: "[Py3.9][Py3.10] - tests/unitary/**"
33
on:
44
workflow_dispatch:
55
pull_request:
6+
branches: [ "main" ]
7+
paths:
8+
- "ads/**"
9+
- "!ads/opctl/operator/**"
10+
- "!ads/feature_store/**"
11+
- "pyproject.toml"
612

713
# Cancel in progress workflows on pull_requests.
814
# https://docs.github.com/en/actions/using-jobs/using-concurrency#example-using-a-fallback-value

0 commit comments

Comments
 (0)