Skip to content

remove gdal>=3.6.2 from dependencies.txt #283

remove gdal>=3.6.2 from dependencies.txt

remove gdal>=3.6.2 from dependencies.txt #283

name: Linting and Testing
on:
push:
jobs:
linting:
name: Linting
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install black ruff
ruff check . --fix
- uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "style: style fixes by ruff and autoformatting by black"
testing:
name: Testing${{ matrix.os }} python ${{ matrix.python-version }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ${{ fromJSON(vars.BUILD_OS)}}
python-version: ${{ fromJSON(vars.PYTHON_VERSIONS)}}
steps:
- uses: actions/checkout@v4
- uses: conda-incubator/setup-miniconda@v3
with:
python-version: ${{ matrix.python-version }}
conda-remove-defaults: "true"
- name: Install dependencies
run: |
conda run -n test conda info
conda run -n test conda install -c loop3d -c conda-forge "gdal>=3.6.2" python=${{ matrix.python-version }} -y
conda run -n test conda install -c loop3d -c conda-forge --file dependencies.txt python=${{ matrix.python-version }} -y
conda run -n test conda install pytest python=${{ matrix.python-version }} -y
- name: displace gdal owslib version
run: |
echo "${{ matrix.os }} ${{ matrix.python-version }}"
conda run -n test conda list gdal
conda run -n test conda list owslib
conda run -n test python -c "from shapely import geos_version; print('geos_version: ', geos_version)"
conda run -n test python -c "import shapely; print('shapely version: ',shapely.__version__)"
- name: Install map2loop
run: |
conda run -n test python -m pip install .
- name: Run tests
run: |
conda run -n test pytest