Skip to content

Commit fd66101

Browse files
committed
add git workflow for explainers
1 parent 387a297 commit fd66101

File tree

2 files changed

+60
-1
lines changed

2 files changed

+60
-1
lines changed
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: "Forecast Explainer 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+
env:
18+
SEGMENT_DOWNLOAD_TIMEOUT_MINS: 5
19+
20+
jobs:
21+
test:
22+
name: python ${{ matrix.python-version }}
23+
runs-on: ubuntu-latest
24+
timeout-minutes: 180
25+
26+
strategy:
27+
fail-fast: false
28+
matrix:
29+
python-version: ["3.9", "3.10", "3.11"]
30+
31+
steps:
32+
- uses: actions/checkout@v4
33+
with:
34+
fetch-depth: 0
35+
ref: ${{ github.event.pull_request.head.sha }}
36+
37+
- uses: actions/setup-python@v5
38+
with:
39+
python-version: ${{ matrix.python-version }}
40+
cache: "pip"
41+
cache-dependency-path: |
42+
pyproject.toml
43+
"**requirements.txt"
44+
"test-requirements-operators.txt"
45+
46+
- uses: ./.github/workflows/set-dummy-conf
47+
name: "Test config setup"
48+
49+
- name: "Run Forecast Explainer Tests"
50+
timeout-minutes: 180
51+
shell: bash
52+
run: |
53+
set -x # print commands that are executed
54+
$CONDA/bin/conda init
55+
source /home/runner/.bashrc
56+
pip install -r test-requirements-operators.txt
57+
pip install "oracle-automlx[forecasting]>=25.1.1"
58+
pip install pandas>=2.2.0
59+
python -m pytest -v -p no:warnings --durations=5 tests/operators/forecast/test_explainers.py

.github/workflows/run-forecast-unit-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,4 @@ jobs:
5858
pip install -r test-requirements-operators.txt
5959
pip install "oracle-automlx[forecasting]>=25.1.1"
6060
pip install pandas>=2.2.0
61-
python -m pytest -v -p no:warnings --durations=5 tests/operators/forecast
61+
python -m pytest -v -p no:warnings --durations=5 tests/operators/forecast --ignore=tests/operators/forecast/test_explainers.py

0 commit comments

Comments
 (0)