Skip to content

Commit 59f4a7a

Browse files
authoredMar 7, 2025··
Merge branch 'feature/repository_maintanance' into ODSC-54710/python311_312_support
2 parents d6cd3f5 + 289b7ae commit 59f4a7a

File tree

166 files changed

+11364
-2291
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

166 files changed

+11364
-2291
lines changed
 
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
name: "Forecast Operator Tests"
2+
3+
on:
4+
workflow_dispatch:
5+
pull_request:
6+
branches: [ "main", "operators/**" ]
7+
8+
# Cancel in progress workflows on pull_requests.
9+
# https://docs.github.com/en/actions/using-jobs/using-concurrency#example-using-a-fallback-value
10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
12+
cancel-in-progress: true
13+
14+
permissions:
15+
contents: read
16+
17+
# hack for https://github.com/actions/cache/issues/810#issuecomment-1222550359
18+
env:
19+
SEGMENT_DOWNLOAD_TIMEOUT_MINS: 5
20+
21+
jobs:
22+
test:
23+
name: python ${{ matrix.python-version }}
24+
runs-on: ubuntu-latest
25+
timeout-minutes: 180
26+
27+
strategy:
28+
fail-fast: false
29+
matrix:
30+
python-version: ["3.8", "3.9", "3.10"]
31+
32+
steps:
33+
- uses: actions/checkout@v4
34+
with:
35+
fetch-depth: 0
36+
ref: ${{ github.event.pull_request.head.sha }}
37+
38+
39+
- uses: actions/setup-python@v5
40+
with:
41+
python-version: ${{ matrix.python-version }}
42+
cache: "pip"
43+
cache-dependency-path: |
44+
pyproject.toml
45+
"**requirements.txt"
46+
"test-requirements-operators.txt"
47+
48+
- uses: ./.github/workflows/set-dummy-conf
49+
name: "Test config setup"
50+
51+
- name: "Run Forecast Tests"
52+
timeout-minutes: 180
53+
shell: bash
54+
run: |
55+
set -x # print commands that are executed
56+
$CONDA/bin/conda init
57+
source /home/runner/.bashrc
58+
pip install -r test-requirements-operators.txt
59+
pip install "oracle-automlx[classic]>=24.2.0"
60+
pip install "oracle-automlx[forecasting]>=24.2.0"
61+
pip install pandas>=2.2.0
62+
python -m pytest -v -p no:warnings --durations=5 tests/operators/forecast

‎.github/workflows/run-operators-unit-tests.yml

+4-8
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,9 @@
1-
name: "[Py3.8][Py3.10] Operators Tests"
1+
name: "Operators Tests"
22

33
on:
44
workflow_dispatch:
55
pull_request:
6-
paths:
7-
- "ads/opctl/operator/**"
8-
- "**requirements.txt"
9-
- ".github/workflows/run-operators*.yml"
10-
- "test-requirements-operators.txt"
6+
branches: [ "main", "operators/**" ]
117

128
# Cancel in progress workflows on pull_requests.
139
# https://docs.github.com/en/actions/using-jobs/using-concurrency#example-using-a-fallback-value
@@ -31,7 +27,7 @@ jobs:
3127
strategy:
3228
fail-fast: false
3329
matrix:
34-
python-version: ["3.8"]
30+
python-version: ["3.8", "3.9", "3.10"]
3531

3632
steps:
3733
- uses: actions/checkout@v4
@@ -56,4 +52,4 @@ jobs:
5652
$CONDA/bin/conda init
5753
source /home/runner/.bashrc
5854
pip install -r test-requirements-operators.txt
59-
python -m pytest -v -p no:warnings --durations=5 tests/operators
55+
python -m pytest -v -p no:warnings --durations=5 tests/operators --ignore=tests/operators/forecast

0 commit comments

Comments
 (0)
Please sign in to comment.