Skip to content

Commit

Permalink
Install prophet during linux nightlies (#2598)
Browse files Browse the repository at this point in the history
* Install prophet during nightlies

* Fix test_all_components

* Run right branch

* Revert nightly changes

* Add comments to test_all_components
  • Loading branch information
freddyaboulton authored Aug 5, 2021
1 parent ecad831 commit 6a814dd
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 2 deletions.
15 changes: 14 additions & 1 deletion .github/workflows/linux_nightlies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,21 @@ jobs:
virtualenv test_python -q
source test_python/bin/activate
python -m pip install --upgrade pip -q
- name: Installing Latest Dependency Versions
- if: ${{ (matrix.command == 'git-test-automl' || matrix.command == 'git-test-other') }}
name: Installing Latest Dependencies and Prophet
run: |
pip install virtualenv
virtualenv test_python -q
source test_python/bin/activate
pip install cmdstan-builder==0.0.4
make installdeps
make installdeps-test
pip freeze
- if: ${{ (matrix.command == 'git-test-modelunderstanding' || matrix.command == 'git-test-dask') }}
name: Installing Latest Dependencies
run: |
pip install virtualenv
virtualenv test_python -q
source test_python/bin/activate
make installdeps
make installdeps-test
Expand Down
1 change: 1 addition & 0 deletions docs/source/release_notes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Release Notes
* Documentation Changes
* Testing Changes
* Changed the lint CI job to only check against python 3.9 via the `-t` flag :pr:`2586`
* Installed Prophet in linux nightlies test and fixed ``test_all_components`` :pr:`2598`

.. warning::

Expand Down
14 changes: 13 additions & 1 deletion evalml/tests/component_tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,24 @@ def test_all_components(
is_using_conda,
is_using_windows,
):
# The total number of minimal components is 41
# The total number of components is 54
# Depending on the environment the detrender/Arima and/or Prophet will not be installed

if has_minimal_dependencies:
n_components = 41
elif is_using_conda:
# No prophet and no arima
n_components = 52
elif is_running_py_39_or_above or is_using_windows:
elif is_using_windows and not is_running_py_39_or_above:
# No prophet
n_components = 53
elif is_using_windows and is_running_py_39_or_above:
# No detrender, no arima, no prophet
n_components = 51
elif not is_using_windows and is_running_py_39_or_above:
# No detrender or arima
n_components = 52
else:
n_components = 54
assert len(all_components()) == n_components
Expand Down

0 comments on commit 6a814dd

Please sign in to comment.