diff --git a/.github/workflows/nightly_cron.yml b/.github/workflows/nightly_cron.yml index 73643a603..de3c104bd 100644 --- a/.github/workflows/nightly_cron.yml +++ b/.github/workflows/nightly_cron.yml @@ -27,8 +27,8 @@ jobs: fail-fast: false matrix: os: [windows-latest, macos-latest, ubuntu-latest] - python-version: ['3.11'] - python-executable: ['cp311'] + python-version: ['3.12'] + python-executable: ['cp312'] defaults: run: shell: bash @@ -59,7 +59,7 @@ jobs: shell: bash - name: Install cibuildwheel - run: python -m pip install cibuildwheel==2.9.0 # TODO: Do we want this pinned? + run: python -m pip install cibuildwheel - name: Generating dependency table id: dependency-table # Needed to set output of job @@ -78,6 +78,7 @@ jobs: CIBW_ARCHS_LINUX: "x86_64" CIBW_ARCHS_MACOS: "x86_64" CIBW_ARCHS_WINDOWS: "AMD64" + CIBW_BEFORE_ALL: make version CIBW_BEFORE_BUILD: > for dependency in ${{ steps.dependencies.outputs.latest_dependencies }}; do pip install $dependency diff --git a/pmdarima/arima/tests/test_validation.py b/pmdarima/arima/tests/test_validation.py index 58cfc5f13..9e89bbc73 100644 --- a/pmdarima/arima/tests/test_validation.py +++ b/pmdarima/arima/tests/test_validation.py @@ -1,5 +1,7 @@ # -*- coding: utf-8 -*- +import warnings + import numpy as np import pytest @@ -42,7 +44,7 @@ def test_check_information_criterion(ic, assert any('information_criterion cannot be' in s for s in pytest_warning_messages(w)) else: - with pytest.warns(None) as w: + with warnings.catch_warnings(record=True) as w: res = val.check_information_criterion(ic, ooss) assert not w @@ -90,7 +92,7 @@ def test_check_m(m, seasonal, expect_error, expect_warning, expected_val): assert any('set for non-seasonal fit' in s for s in pytest_warning_messages(w)) else: - with pytest.warns(None) as w: + with warnings.catch_warnings(record=True) as w: res = val.check_m(m, seasonal) assert not w @@ -114,7 +116,7 @@ def test_check_n_jobs(stepwise, n_jobs, expect_warning, expected_n_jobs): assert any('stepwise model cannot be fit in parallel' in s for s in pytest_warning_messages(w)) else: - with pytest.warns(None) as w: + with warnings.catch_warnings(record=True) as w: res = val.check_n_jobs(stepwise, n_jobs) assert not w @@ -199,5 +201,7 @@ def test_warn_for_D(d, D, expected): assert any(expected in w for w in warning_msgs) else: - with pytest.warns(None): + with warnings.catch_warnings(): + # Ensure no warnings are emitted if not expected + warnings.simplefilter("error") val.warn_for_D(d=d, D=D)