Skip to content

Commit 9f36bf3

Browse files
Merge pull request #41 from Urban-Analytics-Technology-Platform/secondary_locations
Secondary locations
2 parents 935b324 + ce523a8 commit 9f36bf3

20 files changed

+97243
-24715
lines changed

.github/workflows/ci.yml

+30-4
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,39 @@ jobs:
4242
python-version: ${{ matrix.python-version }}
4343
allow-prereleases: true
4444

45+
- name: Setup Miniconda
46+
uses: conda-incubator/setup-miniconda@v3.0.4
47+
with:
48+
auto-update-conda: true
49+
python-version: ${{ matrix.python-version }}
50+
channels: conda-forge
51+
channel-priority: strict
52+
auto-activate-base: false
53+
miniforge-version: latest
54+
use-mamba: true
55+
56+
- name: Create conda environment
57+
shell: bash -el {0}
58+
run: |
59+
conda create --name gdal_env python=${{ matrix.python-version }} -y
60+
61+
- name: Install GDAL
62+
shell: bash -el {0}
63+
run: |
64+
conda activate gdal_env
65+
mamba install conda-forge::gdal
66+
4567
- name: Install package
46-
run: python -m pip install .[test]
68+
shell: bash -el {0}
69+
run: |
70+
conda activate gdal_env
71+
python -m pip install .[test]
4772
4873
- name: Test package
49-
run: >-
50-
python -m pytest -ra --cov --cov-report=xml --cov-report=term
51-
--durations=20
74+
shell: bash -el {0}
75+
run: |
76+
conda activate gdal_env
77+
python -m pytest -ra --cov --cov-report=xml --cov-report=term --durations=20
5278
5379
- name: Upload coverage report
5480
uses: codecov/codecov-action@v4.0.1

0 commit comments

Comments
 (0)