diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b07d969f..6dc19c95 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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: @@ -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: @@ -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