{"language": "Python", "id": 27, "repo_owner": "mwaskom", "repo_name": "seaborn", "head_branch": "maint/pandas-2.2.0-compat", "workflow_name": "CI", "workflow_filename": "ci.yaml", "workflow_path": ".github/workflows/ci.yaml", "contributor": "mwaskom", "sha_fail": "6cbb12e47665eda2c687b4431d6ce789e74ea4a4", "sha_success": "a38dfd6e77b107ecc874260e2e30d56b7b8fb85a", "workflow": "name: CI\n\non:\n push:\n branches: [master, v0.*]\n pull_request:\n branches: master\n schedule:\n - cron: '0 6 * * 1,4' # Each Monday and Thursday at 06:00 UTC\n workflow_dispatch:\n\npermissions:\n contents: read\n\nenv:\n NB_KERNEL: python\n MPLBACKEND: Agg\n SEABORN_DATA: ${{ github.workspace }}/seaborn-data\n PYDEVD_DISABLE_FILE_VALIDATION: 1\n\njobs:\n build-docs:\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1\n\n - name: Setup Python 3.11\n uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0\n with:\n python-version: \"3.11\"\n\n - name: Install seaborn\n run: |\n pip install --upgrade pip\n pip install .[stats,docs]\n\n - name: Install pandoc\n run: |\n wget https://github.com/jgm/pandoc/releases/download/3.1.11/pandoc-3.1.11-1-amd64.deb\n sudo dpkg -i pandoc-3.1.11-1-amd64.deb\n\n - name: Cache datasets\n run: |\n git clone https://github.com/mwaskom/seaborn-data.git\n ls $SEABORN_DATA\n\n - name: Build docs\n env:\n SPHINXOPTS: -j `nproc`\n run: |\n cd doc\n make -j `nproc` notebooks\n make html\n\n\n run-tests:\n runs-on: ubuntu-latest\n\n strategy:\n matrix:\n python: [\"3.8\", \"3.9\", \"3.10\", \"3.11\", \"3.12\"]\n install: [full]\n deps: [latest]\n\n include:\n - python: \"3.8\"\n install: full\n deps: pinned\n - python: \"3.11\"\n install: light\n deps: latest\n\n steps:\n - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1\n\n - name: Setup Python ${{ matrix.python }}\n uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0\n with:\n python-version: ${{ matrix.python }}\n allow-prereleases: true\n\n - name: Install seaborn\n run: |\n pip install --upgrade pip wheel\n if [[ ${{matrix.install}} == 'full' ]]; then EXTRAS=',stats'; fi\n if [[ ${{matrix.deps }} == 'pinned' ]]; then DEPS='-r ci/deps_pinned.txt'; fi\n pip install .[dev$EXTRAS] $DEPS\n\n - name: Run tests\n run: make test\n\n - name: Upload coverage\n uses: codecov/codecov-action@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d # v3.1.4\n if: ${{ success() }}\n\n lint:\n runs-on: ubuntu-latest\n strategy:\n fail-fast: false\n steps:\n\n - name: Checkout\n uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1\n\n - name: Setup Python\n uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0\n\n - name: Install tools\n run: pip install mypy flake8\n\n - name: Flake8\n run: make lint\n\n - name: Type checking\n run: make typecheck\n", "logs": [{"step_name": "run-tests (3.8, full, pinned)/5_Run tests.txt", "log": "##[group]Run make test\n\u001b[36;1mmake test\u001b[0m\nshell: /usr/bin/bash -e {0}\nenv:\n NB_KERNEL: python\n MPLBACKEND: Agg\n SEABORN_DATA: /home/runner/work/seaborn/seaborn/seaborn-data\n PYDEVD_DISABLE_FILE_VALIDATION: 1\n pythonLocation: /opt/hostedtoolcache/Python/3.8.18/x64\n PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.8.18/x64/lib/pkgconfig\n Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.8.18/x64\n Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.8.18/x64\n Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.8.18/x64\n LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.8.18/x64/lib\n##[endgroup]\npytest -n auto --cov=seaborn --cov=tests --cov-config=setup.cfg tests\n============================= test session starts ==============================\nplatform linux -- Python 3.8.18, pytest-7.4.4, pluggy-1.3.0\nrootdir: /home/runner/work/seaborn/seaborn\nconfigfile: pyproject.toml\nplugins: xdist-3.5.0, cov-4.1.0\ncreated: 4/4 workers\n4 workers [2380 items]\n\n........................................................................ [ 3%]\n........................................................................ [ 6%]\n........................................................................ [ 9%]\n........................................................................ [ 12%]\n........................................................................ [ 15%]\n........................................................................ [ 18%]\n........................................................................ [ 21%]\n........................................................................ [ 24%]\n.........................................................s.............. [ 27%]\nF...........................................................sss......... [ 30%]\n........................................................................ [ 33%]\n........................s............................................... [ 36%]\n......................................................................... [ 39%]\n................................ss...................................... [ 42%]\n........................................................................ [ 45%]\n.....................................................s.s................ [ 48%]\n.....sss................................................................ [ 51%]\n........................................................................ [ 54%]\ns.............ss........................................................ [ 57%]\n............................................................s........... [ 60%]\n...ss.................................................................s. [ 63%]\n..........x..................................................x.......... [ 66%]\n.x................................x...x................................. [ 69%]\n...................................................ss................ss. [ 72%]\n........................................................................ [ 75%]\n........................................................................ [ 78%]\n........................................................................ [ 81%]\n......................................................................... [ 84%]\n..................x..................................................... [ 87%]\n........................................................................ [ 90%]\n........................................................................ [ 93%]\n........................................................................ [ 96%]\n........................................................................ [ 99%]\n.. [100%]\n=================================== FAILURES ===================================\n_________________ TestBarPlot.test_datetime_native_scale_axis __________________\n[gw3] linux -- Python 3.8.18 /opt/hostedtoolcache/Python/3.8.18/x64/bin/python\n\n> ???\nE KeyError: 'ME'\n\npandas/_libs/tslibs/offsets.pyx:3502: KeyError\n\nThe above exception was the direct cause of the following exception:\n\n> ???\n\npandas/_libs/tslibs/offsets.pyx:3604: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\n> ???\nE ValueError: Invalid frequency: ME\n\npandas/_libs/tslibs/offsets.pyx:3508: ValueError\n\nThe above exception was the direct cause of the following exception:\n\nself = <tests.test_categorical.TestBarPlot object at 0x7f2ce1dfd6d0>\n\n def test_datetime_native_scale_axis(self):\n \n> x = pd.date_range(\"2010-01-01\", periods=20, freq=\"ME\")\n\ntests/test_categorical.py:2081: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/pandas/core/indexes/datetimes.py:1069: in date_range\n dtarr = DatetimeArray._generate_range(\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/pandas/core/arrays/datetimes.py:377: in _generate_range\n freq = to_offset(freq)\npandas/_libs/tslibs/offsets.pyx:3515: in pandas._libs.tslibs.offsets.to_offset\n ???\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\n> ???\nE ValueError: Invalid frequency: ME\n\npandas/_libs/tslibs/offsets.pyx:3612: ValueError\n=============================== warnings summary ===============================\n../../../../../opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/_collections_abc.py:832: 4 warnings\ntests/test_rcmod.py: 23 warnings\ntests/_core/test_plot.py: 392 warnings\ntests/_marks/test_bar.py: 34 warnings\ntests/_marks/test_area.py: 12 warnings\ntests/_marks/test_dot.py: 28 warnings\ntests/_marks/test_line.py: 66 warnings\ntests/_marks/test_text.py: 16 warnings\n /opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/_collections_abc.py:832: MatplotlibDeprecationWarning: \n The savefig.jpeg_quality rcparam was deprecated in Matplotlib 3.3 and will be removed two minor releases later.\n self[key] = other[key]\n\ntests/test_rcmod.py: 23 warnings\n /opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/_collections_abc.py:832: MatplotlibDeprecationWarning: \n The animation.avconv_args rcparam was deprecated in Matplotlib 3.3 and will be removed two minor releases later.\n self[key] = other[key]\n\ntests/test_rcmod.py: 23 warnings\n /opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/_collections_abc.py:832: MatplotlibDeprecationWarning: \n The animation.avconv_path rcparam was deprecated in Matplotlib 3.3 and will be removed two minor releases later.\n self[key] = other[key]\n\ntests/test_rcmod.py: 23 warnings\n /opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/_collections_abc.py:832: MatplotlibDeprecationWarning: \n The animation.html_args rcparam was deprecated in Matplotlib 3.3 and will be removed two minor releases later.\n self[key] = other[key]\n\ntests/test_rcmod.py: 23 warnings\n /opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/_collections_abc.py:832: MatplotlibDeprecationWarning: \n The keymap.all_axes rcparam was deprecated in Matplotlib 3.3 and will be removed two minor releases later.\n self[key] = other[key]\n\ntests/test_rcmod.py: 23 warnings\n /opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/_collections_abc.py:832: MatplotlibDeprecationWarning: \n The text.latex.preview rcparam was deprecated in Matplotlib 3.3 and will be removed two minor releases later.\n self[key] = other[key]\n\ntests/_core/test_plot.py::TestFacetInterface::test_layout_algo[constrained]\n /home/runner/work/seaborn/seaborn/seaborn/_core/plot.py:1002: UserWarning: There are no gridspecs with layoutgrids. Possibly did not call parent GridSpec with the \"figure\" keyword\n self._figure.savefig(loc, **kwargs)\n\ntests/_core/test_scales.py::TestNominal::test_empty_data\n /home/runner/work/seaborn/seaborn/seaborn/_core/rules.py:170: DeprecationWarning: The default dtype for empty Series will be 'object' instead of 'float64' in a future version. Specify a dtype explicitly to silence this warning.\n if variable_type(pd.Series(order)) == \"numeric\":\n\n-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html\n\n---------- coverage: platform linux, python 3.8.18-final-0 -----------\nName Stmts Miss Cover\n------------------------------------------------------\nseaborn/__init__.py 16 0 100%\nseaborn/_base.py 762 19 98%\nseaborn/_compat.py 76 36 53%\nseaborn/_core/__init__.py 0 0 100%\nseaborn/_core/data.py 116 9 92%\nseaborn/_core/exceptions.py 10 1 90%\nseaborn/_core/groupby.py 54 0 100%\nseaborn/_core/moves.py 109 0 100%\nseaborn/_core/plot.py 827 11 99%\nseaborn/_core/properties.py 422 2 99%\nseaborn/_core/rules.py 63 3 95%\nseaborn/_core/scales.py 502 47 91%\nseaborn/_core/subplots.py 140 0 100%\nseaborn/_core/typing.py 25 1 96%\nseaborn/_docstrings.py 40 5 88%\nseaborn/_marks/__init__.py 0 0 100%\nseaborn/_marks/area.py 86 3 97%\nseaborn/_marks/bar.py 123 0 100%\nseaborn/_marks/base.py 132 2 98%\nseaborn/_marks/dot.py 92 0 100%\nseaborn/_marks/line.py 116 0 100%\nseaborn/_marks/text.py 33 0 100%\nseaborn/_statistics.py 325 5 98%\nseaborn/_stats/__init__.py 0 0 100%\nseaborn/_stats/aggregation.py 41 1 98%\nseaborn/_stats/base.py 26 1 96%\nseaborn/_stats/counting.py 96 0 100%\nseaborn/_stats/density.py 99 4 96%\nseaborn/_stats/order.py 30 3 90%\nseaborn/_stats/regression.py 23 1 96%\nseaborn/_testing.py 52 4 92%\nseaborn/algorithms.py 60 0 100%\nseaborn/axisgrid.py 1039 34 97%\nseaborn/categorical.py 1208 13 99%\nseaborn/distributions.py 952 34 96%\nseaborn/matrix.py 551 26 95%\nseaborn/miscplot.py 24 0 100%\nseaborn/objects.py 15 0 100%\nseaborn/palettes.py 249 1 99%\nseaborn/rcmod.py 104 0 100%\nseaborn/regression.py 336 11 97%\nseaborn/relational.py 287 1 99%\nseaborn/utils.py 375 14 96%\ntests/__init__.py 0 0 100%\ntests/_core/__init__.py 0 0 100%\ntests/_core/test_data.py 293 10 97%\ntests/_core/test_groupby.py 83 0 100%\ntests/_core/test_moves.py 231 0 100%\ntests/_core/test_plot.py 1556 39 97%\ntests/_core/test_properties.py 375 4 99%\ntests/_core/test_rules.py 72 0 100%\ntests/_core/test_scales.py 547 0 100%\ntests/_core/test_subplots.py 368 0 100%\ntests/_marks/__init__.py 0 0 100%\ntests/_marks/test_area.py 84 0 100%\ntests/_marks/test_bar.py 152 0 100%\ntests/_marks/test_base.py 102 0 100%\ntests/_marks/test_dot.py 136 0 100%\ntests/_marks/test_line.py 298 0 100%\ntests/_marks/test_text.py 98 1 99%\ntests/_stats/__init__.py 0 0 100%\ntests/_stats/test_aggregation.py 84 0 100%\ntests/_stats/test_counting.py 180 0 100%\ntests/_stats/test_density.py 142 3 98%\ntests/_stats/test_order.py 64 1 98%\ntests/_stats/test_regression.py 36 0 100%\ntests/conftest.py 107 1 99%\ntests/test_algorithms.py 110 0 100%\ntests/test_axisgrid.py 1314 25 98%\ntests/test_base.py 1008 3 99%\ntests/test_categorical.py 2169 48 98%\ntests/test_distributions.py 1526 12 99%\ntests/test_docstrings.py 19 0 100%\ntests/test_matrix.py 861 28 97%\ntests/test_miscplot.py 24 0 100%\ntests/test_objects.py 11 0 100%\ntests/test_palettes.py 304 0 100%\ntests/test_rcmod.py 189 21 89%\ntests/test_regression.py 441 6 99%\ntests/test_relational.py 1213 13 99%\ntests/test_statistics.py 489 2 99%\ntests/test_utils.py 382 4 99%\n------------------------------------------------------\nTOTAL 24704 513 98%\n\n=========================== short test summary info ============================\nFAILED tests/test_categorical.py::TestBarPlot::test_datetime_native_scale_axis - ValueError: Invalid frequency: ME\n= 1 failed, 2350 passed, 23 skipped, 6 xfailed, 692 warnings in 276.25s (0:04:36) =\nmake: *** [Makefile:4: test] Error 1\n##[error]Process completed with exit code 2.\n"}], "diff": "diff --git a/tests/test_categorical.py b/tests/test_categorical.py\nindex 8e5fd41d..3df78247 100644\n--- a/tests/test_categorical.py\n+++ b/tests/test_categorical.py\n@@ -2078,7 +2078,7 @@ class TestBarPlot(SharedAggTests):\n \n def test_datetime_native_scale_axis(self):\n \n- x = pd.date_range(\"2010-01-01\", periods=20, freq=\"ME\")\n+ x = pd.date_range(\"2010-01-01\", periods=20, freq=\"MS\")\n y = np.arange(20)\n ax = barplot(x=x, y=y, native_scale=True)\n assert \"Date\" in ax.xaxis.get_major_locator().__class__.__name__\n", "difficulty": 3, "changed_files": ["tests/test_categorical.py"], "commit_link": "https://github.com/mwaskom/seaborn/tree/6cbb12e47665eda2c687b4431d6ce789e74ea4a4"} |