-
-
Notifications
You must be signed in to change notification settings - Fork 394
62 lines (52 loc) · 1.71 KB
/
windows.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
on:
push:
branches:
- master
pull_request:
branches:
- master
name: Windows build
jobs:
test-windows:
runs-on: windows-latest
strategy:
matrix:
python-version: ["3.10"]
defaults:
run:
shell: bash -el {0}
steps:
- uses: actions/checkout@v3
- name: Setup Python
uses: conda-incubator/setup-miniconda@v2
with:
auto-activate-base: true
python-version: ${{ matrix.python-version }}
channels: conda-forge,defaults
channel-priority: true
miniconda-version: latest
- name: Cache dependencies
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements*.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Testing conda
run: |
conda info
conda list
- name: Install GDAL
run: |
conda install -c conda-forge mamba --yes
mamba install -c conda-forge gdal pyproj --yes
# - name: Test GDAL installation
# run: |
# python -c "from osgeo import gdal"
# gdalinfo --version
- name: Install dependencies
run: |
pip install -r requirements.txt
pip install .
- name: Test import
run: python -c "import leafmap; print('leafmap import successful')"