Skip to content

Commit

Permalink
Merge branch 'main' into recall
Browse files Browse the repository at this point in the history
  • Loading branch information
aryanpola authored Dec 23, 2024
2 parents 4baaec7 + a4b8b3f commit 43cd9ac
Show file tree
Hide file tree
Showing 8 changed files with 387 additions and 30 deletions.
35 changes: 35 additions & 0 deletions .github/actions/cpu_all_extras/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Pip install all_extras with CPU versions
description: "For CI testing install the CPU version of dependencies with all extras if on ubuntu"

inputs:
additional_extras:
description: "Comma-separated list of additional extras to install"
required: false
default: ""

runs:
using: "composite"
steps:
- name: Install CPU TensorFlow
if: runner.os == 'Linux'
uses: nick-fields/retry@v3
with:
timeout_minutes: 30
max_attempts: 3
command: python -m pip install tensorflow-cpu

- name: Install CPU PyTorch
if: runner.os == 'Linux'
uses: nick-fields/retry@v3
with:
timeout_minutes: 30
max_attempts: 3
command: python -m pip install torch --index-url https://download.pytorch.org/whl/cpu

- name: Install dependencies
uses: nick-fields/retry@v3
with:
timeout_minutes: 30
max_attempts: 3
command: >
python -m pip install .[all_extras${{ inputs.additional_extras != '' && ',' || '' }}${{ inputs.additional_extras }}]
21 changes: 6 additions & 15 deletions .github/workflows/periodic_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,9 @@ jobs:
python_version: "3.10"
restore_cache: "false"

- name: Install dependencies
uses: nick-fields/retry@v3
- uses: ./.github/actions/cpu_all_extras
with:
timeout_minutes: 30
max_attempts: 3
command: python -m pip install .[all_extras,binder,dev]
additional_extras: "dev,binder"

- name: Run example notebooks
run: .github/utilities/run_examples.sh false
Expand Down Expand Up @@ -180,12 +177,9 @@ jobs:
python_version: ${{ matrix.python-version }}
restore_cache: "false"

- name: Install aeon and dependencies
uses: nick-fields/retry@v3
- uses: ./.github/actions/cpu_all_extras
with:
timeout_minutes: 30
max_attempts: 3
command: python -m pip install .[all_extras,dev]
additional_extras: "dev"

- name: Show dependencies
run: python -m pip list
Expand Down Expand Up @@ -215,12 +209,9 @@ jobs:
- name: Disable Numba JIT
run: echo "NUMBA_DISABLE_JIT=1" >> $GITHUB_ENV

- name: Install aeon and dependencies
uses: nick-fields/retry@v3
- uses: ./.github/actions/cpu_all_extras
with:
timeout_minutes: 30
max_attempts: 3
command: python -m pip install .[all_extras,unstable_extras,dev]
additional_extras: "unstable_extras,dev"

- name: Show dependencies
run: python -m pip list
Expand Down
7 changes: 2 additions & 5 deletions .github/workflows/pr_examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,9 @@ jobs:
runner_os: ${{ runner.os }}
python_version: "3.10"

- name: Install aeon and dependencies
uses: nick-fields/retry@v3
- uses: ./.github/actions/cpu_all_extras
with:
timeout_minutes: 30
max_attempts: 3
command: python -m pip install .[all_extras,binder,dev]
additional_extras: "dev,binder"

- name: Run example notebooks
run: .github/utilities/run_examples.sh ${{ github.event_name == 'pull_request' && !contains(github.event.pull_request.labels.*.name, 'full examples run') }}
Expand Down
14 changes: 4 additions & 10 deletions .github/workflows/pr_pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,9 @@ jobs:
runner_os: ${{ runner.os }}
python_version: ${{ matrix.python-version }}

- name: Install aeon and dependencies
uses: nick-fields/retry@v3
- uses: ./.github/actions/cpu_all_extras
with:
timeout_minutes: 30
max_attempts: 3
command: python -m pip install .[all_extras,dev]
additional_extras: "dev"

- name: Show dependencies
run: python -m pip list
Expand All @@ -120,12 +117,9 @@ jobs:
- name: Disable Numba JIT
run: echo "NUMBA_DISABLE_JIT=1" >> $GITHUB_ENV

- name: Install aeon and dependencies
uses: nick-fields/retry@v3
- uses: ./.github/actions/cpu_all_extras
with:
timeout_minutes: 30
max_attempts: 3
command: python -m pip install .[all_extras,unstable_extras,dev]
additional_extras: "unstable_extras,dev"

- name: Show dependencies
run: python -m pip list
Expand Down
2 changes: 2 additions & 0 deletions aeon/anomaly_detection/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"LOF",
"MERLIN",
"OneClassSVM",
"ROCKAD",
"PyODAdapter",
"STOMP",
"STRAY",
Expand All @@ -25,5 +26,6 @@
from aeon.anomaly_detection._merlin import MERLIN
from aeon.anomaly_detection._one_class_svm import OneClassSVM
from aeon.anomaly_detection._pyodadapter import PyODAdapter
from aeon.anomaly_detection._rockad import ROCKAD
from aeon.anomaly_detection._stomp import STOMP
from aeon.anomaly_detection._stray import STRAY
Loading

0 comments on commit 43cd9ac

Please sign in to comment.