What is your issue?
Xarray raises a FutureWarning in its date_range, also observable in your tests.
The precise warning is:
xarray/coding/cftime_offsets.py:1130: FutureWarning: Argument closed is deprecated in favor of inclusive.
You should discuss if you will adapt the new inclusive argument or add a workaround.