Skip to content

Modernize ADS build workflows to uv and simplify root package imports #1085

Modernize ADS build workflows to uv and simplify root package imports

Modernize ADS build workflows to uv and simplify root package imports #1085

name: "Forecast Explainer Tests"
on:
workflow_dispatch:
pull_request:
branches: [ "main", "operators/**" ]
# Cancel in progress workflows on pull_requests.
# https://docs.github.com/en/actions/using-jobs/using-concurrency#example-using-a-fallback-value
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
permissions:
contents: read
env:
SEGMENT_DOWNLOAD_TIMEOUT_MINS: 5
jobs:
test:
name: python ${{ matrix.python-version }}
runs-on: ubuntu-latest
timeout-minutes: 180
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11"]
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }}
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
with:
python-version: ${{ matrix.python-version }}
- uses: ./.github/workflows/set-dummy-conf
name: "Test config setup"
- uses: ./.github/workflows/test-env-setup
name: "Test env setup"
timeout-minutes: 30
with:
requirements-file: test-requirements-operators.txt
- name: "Install Forecast dependencies"
run: |
uv pip install --system "oracle-automlx[forecasting]>=25.3.0" "pandas>=2.2.0"
- name: "Run Forecast Explainer Tests"
timeout-minutes: 180
shell: bash
run: |
set -x # print commands that are executed
python -m pytest -v -p no:warnings --durations=5 tests/operators/forecast/test_explainers.py