-
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 497fdcb
Showing
3 changed files
with
108 additions
and
99 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,22 @@ | ||
#!/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 | ||
sed_inplace "s/pandas-datareader==.*/pandas-datareader==${{ matrix.pandas-datareader-version }}/" etc/requirements.txt | ||
fi | ||
if [ -n matrix.dask-version ]; then | ||
sed_inplace "s/dask\[dataframe\]==.*/dask\[dataframe\]==${{ matrix.dask-version }}/" etc/requirements.txt | ||
fi |