Skip to content

Commit

Permalink
isolate pytest
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewMiddlehurst committed Nov 26, 2024
1 parent 0c3471c commit 66c5df4
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pr_core_dep_import.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: PR core dep module imports
name: PR module imports

on:
push:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr_pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
run: python -m pip list

- name: Run tests
run: python -m pytest -n logical -k 'not TestAll'
run: python -m pytest -n logical

pytest:
runs-on: ${{ matrix.os }}
Expand Down
12 changes: 9 additions & 3 deletions aeon/testing/estimator_checking/_estimator_checking.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@
from sklearn.utils._testing import SkipTest

from aeon.base import BaseAeonEstimator
from aeon.testing.estimator_checking._yield_estimator_checks import (
_yield_all_aeon_checks,
)
from aeon.testing.testing_config import (
EXCLUDE_ESTIMATORS,
EXCLUDED_TESTS,
Expand Down Expand Up @@ -75,6 +72,10 @@ class is passed.

import pytest

from aeon.testing.estimator_checking._yield_estimator_checks import (
_yield_all_aeon_checks,
)

checks = []
for est in estimators:
# check if estimator has soft dependencies installed
Expand Down Expand Up @@ -193,8 +194,13 @@ class is passed.
{'check_get_params(estimator=MockClassifier())': 'PASSED'}
"""
# check if estimator has soft dependencies installed
_check_soft_dependencies("pytest")
_check_estimator_deps(estimator)

from aeon.testing.estimator_checking._yield_estimator_checks import (
_yield_all_aeon_checks,
)

checks = []
# collect all relevant checks
for check in _yield_all_aeon_checks(
Expand Down

0 comments on commit 66c5df4

Please sign in to comment.