|
| 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 |
0 commit comments