Bump pypa/gh-action-pypi-publish in /.github/workflows #46
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: build | |
| on: | |
| push: | |
| jobs: | |
| test: | |
| name: Run Tests and Code Coverage 📝 | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ['3.9', '3.10', '3.11', '3.12', '3.13'] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python ${{ matrix.python-version }} 🐍 | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install dependencies ⚙️ | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install libgdal-dev | |
| python -m pip install --upgrade pip | |
| pip install . | |
| pip install pytest pytest-cov shapely build geopandas | |
| - name: Test with pytest ✅ | |
| run: | | |
| pytest --cov=distancerasters | |
| - name: Coveralls 👖 | |
| if: matrix.python-version == '3.13' | |
| env: | |
| COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} | |
| GITHUB_TOKEN: $COVERALLS_REPO_TOKEN | |
| run: | | |
| pip install coveralls | |
| coveralls | |
| - name: Try building a binary wheel and a source tarball 🚧 | |
| run: | | |
| python -m build --sdist --wheel --outdir dist/ . |