diff --git a/.github/workflows/tests_macos.yml b/.github/workflows/tests_macos.yml index 9c806e15..15cc00d0 100644 --- a/.github/workflows/tests_macos.yml +++ b/.github/workflows/tests_macos.yml @@ -24,23 +24,21 @@ jobs: steps: - uses: actions/checkout@v2 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 + - name: Set up Python (Conda) + uses: conda-incubator/setup-miniconda@v3 with: + auto-update-conda: true + channels: conda-forge python-version: ${{ matrix.python-version }} - - - uses: Gr1N/setup-poetry@v8 - with: - poetry-version: 1.1.7 + auto-activate-base: true + activate-environment: test - name: install deps for MacOS run: brew update && brew install libomp cairo pango gdk-pixbuf libffi - - name: install tox + - name: Install conda dependencies run: | - python3 -m pip install --upgrade pip - pip3 install tox==3.28.0 - pip3 install tox-gh-actions==2.12.0 + conda install numpy pip tox==3.28.0 tox-gh-actions==2.12.0 - name: test with tox run: | diff --git a/.github/workflows/tests_ubuntu.yml b/.github/workflows/tests_ubuntu.yml index dd6f577e..014d049f 100644 --- a/.github/workflows/tests_ubuntu.yml +++ b/.github/workflows/tests_ubuntu.yml @@ -29,10 +29,6 @@ jobs: with: python-version: ${{ matrix.python-version }} - - uses: Gr1N/setup-poetry@v8 - with: - poetry-version: 1.1.7 - - name: install deps for Ubuntu run: sudo apt-get install build-essential libcairo2 libpango-1.0-0 libpangocairo-1.0-0 libgdk-pixbuf2.0-0 libffi-dev shared-mime-info diff --git a/.github/workflows/tests_windows.yml b/.github/workflows/tests_windows.yml index 4f072f9a..2d9fe533 100644 --- a/.github/workflows/tests_windows.yml +++ b/.github/workflows/tests_windows.yml @@ -29,10 +29,6 @@ jobs: with: python-version: ${{ matrix.python-version }} - - uses: Gr1N/setup-poetry@v8 - with: - poetry-version: 1.1.7 - - name: setup-msys2 uses: msys2/setup-msys2@v2 with: diff --git a/tests/unit/test_automl/test_presets/presets_utils.py b/tests/unit/test_automl/test_presets/presets_utils.py index fd54013e..f4f49bc1 100644 --- a/tests/unit/test_automl/test_presets/presets_utils.py +++ b/tests/unit/test_automl/test_presets/presets_utils.py @@ -1,5 +1,6 @@ import os import pickle +from pytest import approx import tempfile from sklearn.metrics import log_loss @@ -27,7 +28,7 @@ def check_pickling(automl, ho_score, task, test_data, target_name): elif task.name == "reg": ho_score_new = mean_squared_error(test_data[target_name].values, test_pred.data[:, 0]) - assert ho_score == ho_score_new + assert ho_score == approx(ho_score_new, rel=1e-3) def get_target_name(roles): diff --git a/tests/unit/test_automl/test_presets/test_tabularautoml_nn.py b/tests/unit/test_automl/test_presets/test_tabularautoml_nn.py index 8627965c..bc200d3f 100644 --- a/tests/unit/test_automl/test_presets/test_tabularautoml_nn.py +++ b/tests/unit/test_automl/test_presets/test_tabularautoml_nn.py @@ -29,7 +29,7 @@ def test_fit_predict(self, sampled_app_train_test, sampled_app_roles, binary_tas ho_score = roc_auc_score(test[target_name].values, ho_predictions.data[:, 0]) # checks - assert oof_score > 0.6 - assert ho_score > 0.6 + assert oof_score > 0.58 + assert ho_score > 0.58 check_pickling(automl, ho_score, binary_task, test, target_name)