Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 12f8626

Browse files
committed
ci: Install pytz for Pandas nightly wheel
At some point, one of our dependencies must have required `pytz`, but then recently dropped it. Pandas also requires it, but because we install the nightly wheels using `--index-url`, `pip` can only install files from that index, which does not contain `pytz`. And we want to use that index exclusively because we only want the nightly wheels, and nothing else. Also, make `-i` into the more explicit `--index-url`, and word-wrap that step. Fixes #25431
1 parent 7eafdd8 commit 12f8626

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/tests.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,9 +236,14 @@ jobs:
236236
237237
- name: Install the nightly dependencies
238238
# Only install the nightly dependencies during the scheduled event
239-
if: ${{ github.event_name == 'schedule' && matrix.name-suffix != '(Minimum Versions)' }}
239+
if: |
240+
github.event_name == 'schedule' &&
241+
matrix.name-suffix != '(Minimum Versions)'
240242
run: |
241-
python -m pip install -i https://pypi.anaconda.org/scipy-wheels-nightly/simple --upgrade --only-binary=:all: numpy pandas
243+
python -m pip install pytz # Must be installed for Pandas.
244+
python -m pip install \
245+
--index-url https://pypi.anaconda.org/scipy-wheels-nightly/simple \
246+
--upgrade --only-binary=:all: numpy pandas
242247
243248
- name: Install Matplotlib
244249
run: |

0 commit comments

Comments
 (0)