change back to shapely>=2 in dependencies.txt #282
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 --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 | |