-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Dani Sim
committed
Jan 27, 2020
1 parent
c19cad3
commit ade2044
Showing
3 changed files
with
109 additions
and
103 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/bash | ||
|
||
if [[ "$RUNNER_OS" == "macOS" ]]; then | ||
MINICONDA_OS=MacOSX | ||
else | ||
MINICONDA_OS=Linux | ||
fi | ||
|
||
wget "https://repo.continuum.io/miniconda/Miniconda${CONDA_ROOT_PYTHON_VERSION:0:1}-4.3.30-$MINICONDA_OS-x86_64.sh" -O miniconda.sh | ||
chmod +x miniconda.sh | ||
./miniconda.sh -b -p $HOME/miniconda | ||
export PATH="$HOME/miniconda/bin:$PATH" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/bin/bash | ||
|
||
if [[ "$RUNNER_OS" == "macOS" ]]; then | ||
# On OSX, sed refuses to edit in place, so give it an empty extension for the rename. | ||
function sed_inplace() { | ||
sed -i '' "$@" | ||
} | ||
else | ||
function sed_inplace() { | ||
sed -i "$@" | ||
} | ||
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 | ||
export PANDAS_DATAREADER_VERSION=${{ matrix.pandas-datareader-version }} | ||
sed_inplace "s/pandas-datareader==.*/pandas-datareader==$PANDAS_DATAREADER_VERSION/" etc/requirements.txt | ||
fi | ||
if [ -n matrix.dask-version ]; then | ||
export DASK_VERSION=${{ matrix.dask-version }} | ||
sed_inplace "s/dask\[dataframe\]==.*/dask\[dataframe\]==$DASK_VERSION/" etc/requirements.txt | ||
fi |