Skip to content

Reduce Binder cold‑start times and stabilize builds (#8) #22

Reduce Binder cold‑start times and stabilize builds (#8)

Reduce Binder cold‑start times and stabilize builds (#8) #22

Workflow file for this run

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