Skip to content

Commit

Permalink
Finalize conda CI (#89)
Browse files Browse the repository at this point in the history
* Setup conda CI

* Add some colour to conda pytest
  • Loading branch information
Zeitsperre authored Apr 8, 2021
1 parent 899792c commit a3d5a3c
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
run: tox -e ${{ matrix.tox-env }}

pip:
name: Pip-install for Python ${{ matrix.python-version }}
name: Pip with Python${{ matrix.python-version }}
needs: black
runs-on: ubuntu-latest
strategy:
Expand All @@ -43,15 +43,16 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
- name: Install GDAL
run:
sudo apt-get update && sudo apt-get install libgdal-dev
run: |
sudo apt-get update
sudo apt-get install libgdal-dev
- name: Install tox
run: pip install tox
- name: Test with tox
run: env GDAL_VERSION="$(gdal-config --version)" tox -e ${{ matrix.tox-env }}

conda:
name: Miniconda3 install fro Python3.8
name: Conda
needs: black
runs-on: ubuntu-latest
steps:
Expand All @@ -60,14 +61,13 @@ jobs:
uses: s-weigand/setup-conda@v1
with:
update-conda: true
python-version: 3.8
conda-channels: zeitsperre, conda-forge, defaults
- name: Conda version
run: conda --version
- name: Create RavenPy environment
run: conda env create -f environment.yml
- run: conda activate ravenpy-env
- name: Install RavenPy
run: pip install -e ".[dev]"
- name: Test with pytest
run: pytest tests
- name: Install and test RavenPy
run: |
source activate ravenpy-env
pip install -e ".[dev]"
git clone https://github.com/Ouranosinc/raven-testdata $GITHUB_WORKSPACE/raven-testdata
env RAVENPY_TESTDATA_PATH=$GITHUB_WORKSPACE/raven-testdata pytest --cov --color=yes ravenpy

0 comments on commit a3d5a3c

Please sign in to comment.