Initial scaffold: app, stac helpers, CI, pixi, binder #1
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
| # .github/workflows/ci.yml | |
| name: CI | |
| on: | |
| push: | |
| branches: [main, "refs/heads/*"] | |
| pull_request: | |
| branches: [main] | |
| workflow_dispatch: | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: "3.11" | |
| - name: Install mamba and conda-forge packages | |
| run: | | |
| python -m pip install -U pip | |
| python -m pip install mamba | |
| mamba install -y -c conda-forge python=3.11 ipywidgets ipyleaflet pytest ruff | |
| - name: Install project (pip) | |
| run: | | |
| python -m pip install -e . | |
| - name: Lint (ruff) | |
| run: | | |
| python -m ruff check . | |
| - name: Run tests (pytest) | |
| run: | | |
| pytest -q |