Skip to content

Commit a088bf8

Browse files
committed
issue/190: update cicd workflow to use micromamba gdal version
1 parent 4a72f79 commit a088bf8

1 file changed

Lines changed: 7 additions & 9 deletions

File tree

.github/workflows/cicd-pipeline.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -61,15 +61,12 @@ jobs:
6161
uses: abatilo/actions-poetry@v3
6262
with:
6363
poetry-version: ${{ env.POETRY_VERSION }}
64-
- name: Setup a local virtual environment
64+
- name: Configure Poetry to install into the active environment
65+
# GDAL (libgdal.so) is provided by the conda/micromamba environment, so we must
66+
# NOT create a separate Poetry venv. Installing into the active micromamba env keeps
67+
# the osgeo python bindings and libgdal.so co-located on the same loader path.
6568
run: |
66-
poetry config virtualenvs.create true --local
67-
poetry config virtualenvs.in-project true --local
68-
- uses: actions/cache@v6
69-
name: Define a cache for the virtual environment based on the dependencies lock file
70-
with:
71-
path: ./.venv
72-
key: venv-${{ hashFiles('poetry.lock') }}
69+
poetry config virtualenvs.create false --local
7370
- name: Get pre-build version
7471
id: get-version
7572
run: |
@@ -138,6 +135,7 @@ jobs:
138135
uses: mamba-org/setup-micromamba@v3
139136
with:
140137
environment-file: conda-environment.yaml
138+
cache-environment: true
141139
- name: Install package
142140
run: poetry install
143141
- name: Lint
@@ -170,7 +168,7 @@ jobs:
170168
-Dsonar.tests=tests/
171169
-Dsonar.projectName=${{ github.repository }}
172170
-Dsonar.projectVersion=${{ env.software_version }}
173-
-Dsonar.python.version=3.8,3.9,3.10
171+
-Dsonar.python.version=3.12
174172
- name: Build Python Artifact
175173
id: poetry-build
176174
run: |

0 commit comments

Comments
 (0)