add interactive ipynb links #611
Workflow file for this run
This file contains 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, pull_request] | |
jobs: | |
build: | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
runs-on: ${{ matrix.os }} | |
env: | |
OS: ${{ matrix.os }} | |
PYTHON: '3.10' | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@main | |
with: | |
python-version: "3.10" | |
- name: Run pre-commit hooks | |
run: | | |
pip install pre-commit | |
pre-commit run --all-files | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
sudo apt-add-repository ppa:ubuntugis/ubuntugis-unstable | |
sudo apt-get update | |
sudo apt-get install libgdal-dev | |
pip install . | |
- name: Test and generate coverage report on Linux | |
run: | | |
pip install pytest | |
pip install pytest-cov | |
pytest --cov=naturf/ --cov-report=xml | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v4 | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
with: | |
file: ./coverage.xml | |
fail_ci_if_error: true |