Skip to content

CI: Try to fix the tar issue on macOS #54437

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Aug 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,15 @@ jobs:
with:
python-version: '3.11'

# Work around https://github.com/actions/cache/issues/403 by using GNU tar
# instead of BSD tar.
# borrowed from https://github.com/rust-lang/rust-analyzer/pull/6208/files
- name: Install GNU tar
if: ${{ matrix.buildplat[1] == 'macosx_*' }}
run: |
brew install gnu-tar
echo PATH="/usr/local/opt/gnu-tar/libexec/gnubin:$PATH" >> $GITHUB_ENV

# Python version used to build sdist doesn't matter
# wheel will be built from sdist with the correct version
- name: Build sdist (macOS)
Expand Down
16 changes: 7 additions & 9 deletions pandas/tests/io/test_stata.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,18 +174,16 @@ def test_read_dta2(self, datapath):
)
expected["yearly_date"] = expected["yearly_date"].astype("O")

path1 = datapath("io", "data", "stata", "stata2_114.dta")
path2 = datapath("io", "data", "stata", "stata2_115.dta")
path3 = datapath("io", "data", "stata", "stata2_117.dta")

with tm.assert_produces_warning(UserWarning):
parsed_114 = self.read_dta(
datapath("io", "data", "stata", "stata2_114.dta")
)
parsed_114 = self.read_dta(path1)
with tm.assert_produces_warning(UserWarning):
parsed_115 = self.read_dta(
datapath("io", "data", "stata", "stata2_115.dta")
)
parsed_115 = self.read_dta(path2)
with tm.assert_produces_warning(UserWarning):
parsed_117 = self.read_dta(
datapath("io", "data", "stata", "stata2_117.dta")
)
parsed_117 = self.read_dta(path3)
# 113 is buggy due to limits of date format support in Stata
# parsed_113 = self.read_dta(
# datapath("io", "data", "stata", "stata2_113.dta")
Expand Down