Skip to content

Commit

Permalink
fix overwrite_requirements.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
Dani Sim committed Jan 28, 2020
1 parent 5434b94 commit cb47efd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
key: ${{ matrix.os }}-${{ matrix.python-version }}-${{ matrix.pandas-version }}-${{ hashFiles('**/requirements.txt') }}-pip-cache
- name: Install dependencies
run: |
if [ "$PANDAS_VERSION" = "0.22.0" ]; then
if [ "$PANDAS_VERSION" = 0.22.0 ]; then
PANDAS_DATAREADER_VERSION=0.4.0 DASK_VERSION=0.17.1
fi
source ./ci/actions/overwrite_requirements.sh
Expand Down
4 changes: 2 additions & 2 deletions ci/actions/overwrite_requirements.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ fi
sed_inplace "s/numpy==.*/numpy==$NUMPY_VERSION/" etc/requirements.txt
sed_inplace "s/pandas==.*/pandas==$PANDAS_VERSION/" etc/requirements.txt
sed_inplace "s/scipy==.*/scipy==$SCIPY_VERSION/" etc/requirements.txt
if [ -n matrix.pandas-datareader-version ]; then
if [ -n "$PANDAS_DATAREADER_VERSION" ]; then
sed_inplace "s/pandas-datareader==.*/pandas-datareader==$PANDAS_DATAREADER_VERSION/" etc/requirements.txt
fi
if [ -n matrix.dask-version ]; then
if [ -n "$DASK_VERSION" ]; then
sed_inplace "s/dask\[dataframe\]==.*/dask\[dataframe\]==$DASK_VERSION/" etc/requirements.txt
fi

0 comments on commit cb47efd

Please sign in to comment.