General & modular STAC catalogs + COP30 #19
Workflow file for this run
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: CI | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| shell: bash -l {0} # Use login shell for all steps | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Mambaforge | |
| uses: conda-incubator/setup-miniconda@v3 | |
| with: | |
| python-version: "3.11" | |
| environment-file: binder/environment.yml # Use the main environment file | |
| mamba-version: "*" | |
| activate-environment: planetquery | |
| auto-update-conda: true | |
| channel-priority: "strict" | |
| - name: Install test dependencies | |
| run: mamba install -y pytest ruff | |
| - name: Install local package | |
| run: python -m pip install -e . --no-deps | |
| - name: Lint with Ruff | |
| run: ruff check . | |
| - name: Run tests with Pytest | |
| run: pytest |