Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions .github/actions/install-subpackage/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Install subpackage

description: Set up a conda environment and install a package with its selected extras

inputs:
subproject:
description: Repository-relative package directory
required: true
conda-dependencies:
description: Space-separated additional conda package specifications
required: false
default: biomass-bps::arepyextras-runner
local-dependencies:
description: Space-separated editable dependency paths relative to the subproject
required: false
default: ""
package-extras:
description: Package extras to install
required: true

runs:
using: composite
steps:
- uses: conda-incubator/setup-miniconda@v4
with:
miniforge-version: latest
activate-environment: bps-software
python-version: "3.14"
- name: Install dependencies and package
shell: bash -el {0}
working-directory: ${{ inputs.subproject }}
env:
CONDA_DEPENDENCIES: ${{ inputs.conda-dependencies }}
LOCAL_DEPENDENCIES: ${{ inputs.local-dependencies }}
PACKAGE_EXTRAS: ${{ inputs.package-extras }}
run: |
set -eo pipefail
read -r -a conda_deps <<< "$CONDA_DEPENDENCIES"
conda install --yes -c conda-forge gdal=3.13.3 "${conda_deps[@]}"
read -r -a local_deps <<< "$LOCAL_DEPENDENCIES"
pip_args=()
for dependency in "${local_deps[@]}"; do
pip_args+=(-e "$dependency")
done
if (( ${#pip_args[@]} )); then
python -m pip install "${pip_args[@]}"
fi
python -m pip install -e ".[${PACKAGE_EXTRAS}]"
34 changes: 34 additions & 0 deletions .github/workflows/bps-common.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: bps-common CI

on:
push:
branches:
- "**"
tags:
- "bps-v*"
paths:
- "bps-common/**"
- ".github/workflows/bps-common.yml"
- ".github/workflows/python-package-reusable.yml"
- ".github/actions/install-subpackage/action.yml"
- "ruff.toml"
- "scripts/fawltydeps.toml"
pull_request:
paths:
- "bps-common/**"
- ".github/workflows/bps-common.yml"
- ".github/workflows/python-package-reusable.yml"
- ".github/actions/install-subpackage/action.yml"
- "ruff.toml"
- "scripts/fawltydeps.toml"
workflow_dispatch:

permissions:
contents: read

jobs:
ci:
uses: ./.github/workflows/python-package-reusable.yml
with:
subproject: bps-common
source-path: bps/common
36 changes: 36 additions & 0 deletions .github/workflows/bps-l1_core_processor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: bps-l1_core_processor CI
on:
push:
branches: ["**"]
tags: ["bps-v*"]
paths:
[
"bps-l1_core_processor/**",
"bps-common/**",
".github/workflows/bps-l1_core_processor.yml",
".github/workflows/python-package-reusable.yml",
".github/actions/install-subpackage/action.yml",
"ruff.toml",
"scripts/fawltydeps.toml",
]
pull_request:
paths:
[
"bps-l1_core_processor/**",
"bps-common/**",
".github/workflows/bps-l1_core_processor.yml",
".github/workflows/python-package-reusable.yml",
".github/actions/install-subpackage/action.yml",
"ruff.toml",
"scripts/fawltydeps.toml",
]
workflow_dispatch:
permissions:
contents: read
jobs:
ci:
uses: ./.github/workflows/python-package-reusable.yml
with:
subproject: bps-l1_core_processor
source-path: bps/l1_core_processor
local-dependencies: ../bps-common
35 changes: 35 additions & 0 deletions .github/workflows/bps-l1_framing_processor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: bps-l1_framing_processor CI
on:
push:
branches: ["**"]
tags: ["bps-v*"]
paths:
[
"bps-l1_framing_processor/**",
".github/workflows/bps-l1_framing_processor.yml",
".github/workflows/python-package-reusable.yml",
".github/actions/install-subpackage/action.yml",
"ruff.toml",
"scripts/fawltydeps.toml",
]
pull_request:
paths:
[
"bps-l1_framing_processor/**",
".github/workflows/bps-l1_framing_processor.yml",
".github/workflows/python-package-reusable.yml",
".github/actions/install-subpackage/action.yml",
"ruff.toml",
"scripts/fawltydeps.toml",
]
workflow_dispatch:
permissions:
contents: read
jobs:
ci:
uses: ./.github/workflows/python-package-reusable.yml
with:
subproject: bps-l1_framing_processor
source-path: bps/l1_framing_processor
local-dependencies: ../bps-common ../bps-transcoder
run-tests: false
39 changes: 39 additions & 0 deletions .github/workflows/bps-l1_geocoding_tool.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: bps-l1_geocoding_tool CI
on:
push:
branches: ["**"]
tags: ["l1_geocoding_tool-v*"]
paths:
[
"bps-l1_geocoding_tool/**",
"bps-common/**",
"bps-transcoder/**",
".github/workflows/bps-l1_geocoding_tool.yml",
".github/workflows/python-package-reusable.yml",
".github/actions/install-subpackage/action.yml",
"ruff.toml",
"scripts/fawltydeps.toml",
]
pull_request:
paths:
[
"bps-l1_geocoding_tool/**",
"bps-common/**",
"bps-transcoder/**",
".github/workflows/bps-l1_geocoding_tool.yml",
".github/workflows/python-package-reusable.yml",
".github/actions/install-subpackage/action.yml",
"ruff.toml",
"scripts/fawltydeps.toml",
]
workflow_dispatch:
permissions:
contents: read
jobs:
ci:
uses: ./.github/workflows/python-package-reusable.yml
with:
subproject: bps-l1_geocoding_tool
source-path: bps/l1_geocoding_tool
local-dependencies: ../bps-common ../bps-transcoder
conda-dependencies: biomass-bps::arepyextras-runner biomass-bps::arepyextras-copernicus_dem_extractor
38 changes: 38 additions & 0 deletions .github/workflows/bps-l1_pre_processor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: bps-l1_pre_processor CI
on:
push:
branches: ["**"]
tags: ["bps-v*"]
paths:
[
"bps-l1_pre_processor/**",
"bps-common/**",
"bps-transcoder/**",
".github/workflows/bps-l1_pre_processor.yml",
".github/workflows/python-package-reusable.yml",
".github/actions/install-subpackage/action.yml",
"ruff.toml",
"scripts/fawltydeps.toml",
]
pull_request:
paths:
[
"bps-l1_pre_processor/**",
"bps-common/**",
"bps-transcoder/**",
".github/workflows/bps-l1_pre_processor.yml",
".github/workflows/python-package-reusable.yml",
".github/actions/install-subpackage/action.yml",
"ruff.toml",
"scripts/fawltydeps.toml",
]
workflow_dispatch:
permissions:
contents: read
jobs:
ci:
uses: ./.github/workflows/python-package-reusable.yml
with:
subproject: bps-l1_pre_processor
source-path: bps/l1_pre_processor
local-dependencies: ../bps-common ../bps-transcoder
42 changes: 42 additions & 0 deletions .github/workflows/bps-l1_processor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: bps-l1_processor CI
on:
push:
branches: ["**"]
tags: ["bps-v*"]
paths:
[
"bps-l1_processor/**",
"bps-common/**",
"bps-transcoder/**",
"bps-l1_pre_processor/**",
"bps-l1_core_processor/**",
".github/workflows/bps-l1_processor.yml",
".github/workflows/python-package-reusable.yml",
".github/actions/install-subpackage/action.yml",
"ruff.toml",
"scripts/fawltydeps.toml",
]
pull_request:
paths:
[
"bps-l1_processor/**",
"bps-common/**",
"bps-transcoder/**",
"bps-l1_pre_processor/**",
"bps-l1_core_processor/**",
".github/workflows/bps-l1_processor.yml",
".github/workflows/python-package-reusable.yml",
".github/actions/install-subpackage/action.yml",
"ruff.toml",
"scripts/fawltydeps.toml",
]
workflow_dispatch:
permissions:
contents: read
jobs:
ci:
uses: ./.github/workflows/python-package-reusable.yml
with:
subproject: bps-l1_processor
source-path: bps/l1_processor
local-dependencies: ../bps-common ../bps-l1_pre_processor ../bps-l1_core_processor ../bps-transcoder
38 changes: 38 additions & 0 deletions .github/workflows/bps-l2a_processor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: bps-l2a_processor CI
on:
push:
branches: ["**"]
tags: ["bps-v*"]
paths:
[
"bps-l2a_processor/**",
"bps-common/**",
"bps-transcoder/**",
".github/workflows/bps-l2a_processor.yml",
".github/workflows/python-package-reusable.yml",
".github/actions/install-subpackage/action.yml",
"ruff.toml",
"scripts/fawltydeps.toml",
]
pull_request:
paths:
[
"bps-l2a_processor/**",
"bps-common/**",
"bps-transcoder/**",
".github/workflows/bps-l2a_processor.yml",
".github/workflows/python-package-reusable.yml",
".github/actions/install-subpackage/action.yml",
"ruff.toml",
"scripts/fawltydeps.toml",
]
workflow_dispatch:
permissions:
contents: read
jobs:
ci:
uses: ./.github/workflows/python-package-reusable.yml
with:
subproject: bps-l2a_processor
source-path: bps/l2a_processor
local-dependencies: ../bps-common ../bps-transcoder
38 changes: 38 additions & 0 deletions .github/workflows/bps-l2b_agb_processor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: bps-l2b_agb_processor CI
on:
push:
branches: ["**"]
tags: ["bps-v*"]
paths:
[
"bps-l2b_agb_processor/**",
"bps-common/**",
"bps-transcoder/**",
".github/workflows/bps-l2b_agb_processor.yml",
".github/workflows/python-package-reusable.yml",
".github/actions/install-subpackage/action.yml",
"ruff.toml",
"scripts/fawltydeps.toml",
]
pull_request:
paths:
[
"bps-l2b_agb_processor/**",
"bps-common/**",
"bps-transcoder/**",
".github/workflows/bps-l2b_agb_processor.yml",
".github/workflows/python-package-reusable.yml",
".github/actions/install-subpackage/action.yml",
"ruff.toml",
"scripts/fawltydeps.toml",
]
workflow_dispatch:
permissions:
contents: read
jobs:
ci:
uses: ./.github/workflows/python-package-reusable.yml
with:
subproject: bps-l2b_agb_processor
source-path: bps/l2b_agb_processor
local-dependencies: ../bps-common ../bps-transcoder
38 changes: 38 additions & 0 deletions .github/workflows/bps-l2b_fd_processor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: bps-l2b_fd_processor CI
on:
push:
branches: ["**"]
tags: ["bps-v*"]
paths:
[
"bps-l2b_fd_processor/**",
"bps-common/**",
"bps-transcoder/**",
".github/workflows/bps-l2b_fd_processor.yml",
".github/workflows/python-package-reusable.yml",
".github/actions/install-subpackage/action.yml",
"ruff.toml",
"scripts/fawltydeps.toml",
]
pull_request:
paths:
[
"bps-l2b_fd_processor/**",
"bps-common/**",
"bps-transcoder/**",
".github/workflows/bps-l2b_fd_processor.yml",
".github/workflows/python-package-reusable.yml",
".github/actions/install-subpackage/action.yml",
"ruff.toml",
"scripts/fawltydeps.toml",
]
workflow_dispatch:
permissions:
contents: read
jobs:
ci:
uses: ./.github/workflows/python-package-reusable.yml
with:
subproject: bps-l2b_fd_processor
source-path: bps/l2b_fd_processor
local-dependencies: ../bps-common ../bps-transcoder
Loading
Loading