CI: Fail Numpy Dev build on DeprecationWarnings from numpy only (#46767) · pandas-dev/pandas@dafa5dd (original) (raw)

2 files changed

lines changed

Original file line number Diff line number Diff line change
@@ -61,7 +61,7 @@ jobs:
61 61 env_file: actions-310-numpydev.yaml
62 62 pattern: "not slow and not network and not single_cpu"
63 63 pandas_testing_mode: "deprecate"
64 -test_args: "-W error"
64 +test_args: "-W error::DeprecationWarning:numpy"
65 65 fail-fast: false
66 66 name: ${{ matrix.name |
67 67 env:
@@ -174,7 +174,7 @@ jobs:
174 174 if: always()
175 175
176 176 - name: Build Version
177 -run: pushd /tmp && python -c "import pandas; pandas.show_versions();" && popd
177 +run: conda list
178 178
179 179 - name: Publish test results
180 180 uses: actions/upload-artifact@v3
Original file line number Diff line number Diff line change
@@ -4,13 +4,22 @@
4 4
5 5 import pytest
6 6
7 +from pandas.compat import is_numpy_dev
7 8 from pandas.util._print_versions import (
8 9 _get_dependency_info,
9 10 _get_sys_info,
10 11 )
11 12
12 13 import pandas as pd
13 14
15 +# This is failing on the Numpy Dev build,
16 +# but the error may just be from distutils?
17 +pytestmark = pytest.mark.xfail(
18 +is_numpy_dev,
19 +reason="_distutils not in python3.10/distutils/core.py",
20 +raises=AssertionError,
21 +)
22 +
14 23
15 24 @pytest.mark.filterwarnings(
16 25 # openpyxl