Skip to content

Commit

Permalink
Added conda installation to github-workflows.
Browse files Browse the repository at this point in the history
  • Loading branch information
notger committed Apr 14, 2022
1 parent 48d74ae commit 8ee0340
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions .github/workflows/workflows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@ jobs:
strategy:
matrix:
python-version: ["3.9"]
os: ["ubuntu-latest", "macos-latest"]
os: ["ubuntu-latest"]
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v2
- uses: iterative/setup-cml@v1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
Expand All @@ -20,14 +21,21 @@ jobs:
run: |
brew install c-blosc hdf5
if: matrix.os == 'macos-latest'
- name: Do some Ubunutu specific installs for Python 3.9
if: runner.os == 'Linux'
run: |
sudo apt install ${{inputs.sudo_apt_install}}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest-xdist
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
pip install git+https://github.com/SheffieldSolar/PV_Live-API
if [ -f "setup.py" ]; then pip install -e .; else export PYTHONPATH=$PYTHONPATH:./src; fi
echo "PYTHONPATH=$PYTHONPATH" >> $GITHUB_ENV
# $CONDA is an environment variable pointing to the root of the miniconda directory
$CONDA/bin/conda install eccodes numpy matplotlib rasterio satpy[all] cartopy -c conda-forge
$CONDA/bin/conda install pip -e .
#python -m pip install --upgrade pip
#pip install pytest-xdist
#if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
#pip install git+https://github.com/SheffieldSolar/PV_Live-API
#if [ -f "setup.py" ]; then pip install -e .; else export PYTHONPATH=$PYTHONPATH:./src; fi
#echo "PYTHONPATH=$PYTHONPATH" >> $GITHUB_ENV
- name: Setup with pytest-xdist
run: |
# lets get the string for how many cpus to use with pytest
Expand Down

1 comment on commit 8ee0340

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.






CML watermark

Please sign in to comment.