Skip to content

Commit 4161542

Browse files
committed
Fix CI
1 parent 3640723 commit 4161542

File tree

1 file changed

+16
-6
lines changed

1 file changed

+16
-6
lines changed

.github/workflows/ci.yml

+16-6
Original file line numberDiff line numberDiff line change
@@ -53,18 +53,28 @@ jobs:
5353
miniforge-version: latest
5454
use-mamba: true
5555

56+
- name: Create conda environment
57+
shell: bash -el {0}
58+
run: |
59+
conda create --name gdal_env python=${{ matrix.python-version }} -y
60+
5661
- name: Install GDAL
62+
shell: bash -el {0}
5763
run: |
58-
mamba install conda-forge::gdal
59-
python -m pip install .[test]
64+
conda activate gdal_env
65+
mamba install conda-forge::gdal
6066
6167
- name: Install package
62-
run: python -m pip install .[test]
68+
shell: bash -el {0}
69+
run: |
70+
conda activate gdal_env
71+
python -m pip install .[test]
6372
6473
- name: Test package
65-
run: >-
66-
python -m pytest -ra --cov --cov-report=xml --cov-report=term
67-
--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
6878
6979
- name: Upload coverage report
7080
uses: codecov/codecov-action@v4.0.1

0 commit comments

Comments
 (0)