Skip to content

try different qgis versions #22

try different qgis versions

try different qgis versions #22

Workflow file for this run

name: Conda
on: [push, pull_request]
jobs:
conda-tests:
name: Conda ${{ matrix.python-version }}, OS ${{ matrix.os }} WNTR ${{matrix.wntr}} QGIS: ${{matrix.qgis}}

Check failure on line 7 in .github/workflows/conda-tests.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/conda-tests.yml

Invalid workflow file

You have an error in your yaml syntax on line 7
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash -el {0}
strategy:
fail-fast: false
matrix:
os: ["ubuntu-latest", "macos-13"]
python-version: ["3.9", "3.10","3.11", "3.12"]
wntr-version: ["","wntr=v1.2.0"] # no wntr, then versions
qgis: ["qgis","qgis-ltr","qgis=3.34"]
exclude:
- os: "ubuntu-latest"
wntr-version: ""
steps:
- uses: actions/checkout@v4
- uses: conda-incubator/setup-miniconda@v3
with:
python-version: ${{ matrix.python-version }}
miniconda-version: 'latest'
channels: conda-forge
channel-priority: true
auto-activate-base: false
- name: Install packages
run: |
conda install -y qgis pytest geopandas ${{ matrix.wntr-version}}
pip install pytest-qgis pytest-cov
- name: Conda info
run: |
conda info
conda list
- name: Python Path
run: python -c "import sys; print(sys.path)"
- name: Run tests (non-Ubuntu)
if: ${{ matrix.os !='ubuntu-latest' }}
run: python -m pytest -v
- name: Run Tests (Ubuntu)
if: ${{ matrix.os =='ubuntu-latest' }}
run: xvfb-run -s '+extension GLX -screen 0 1024x768x24' python -m pytest -v