Skip to content

Commit 5f2df54

Browse files
committed
Updated workflows
1 parent 0639fb1 commit 5f2df54

File tree

4 files changed

+65
-1
lines changed

4 files changed

+65
-1
lines changed

.github/workflows/macos.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
on:
2+
push:
3+
branches:
4+
- main
5+
pull_request:
6+
branches:
7+
- main
8+
9+
name: macOS build
10+
jobs:
11+
test-macOS:
12+
runs-on: ${{ matrix.config.os }}
13+
name: ${{ matrix.config.os }} (${{ matrix.config.py }})
14+
strategy:
15+
fail-fast: false
16+
matrix:
17+
config:
18+
- { os: macOS-latest, py: "3.10" }
19+
env:
20+
SDKROOT: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk
21+
steps:
22+
- name: CHECKOUT CODE
23+
uses: actions/checkout@v3
24+
- name: SETUP PYTHON
25+
uses: actions/setup-python@v4
26+
with:
27+
python-version: ${{ matrix.config.py }}
28+
- name: Install dependencies
29+
run: |
30+
python -m pip install --upgrade pip
31+
pip install --no-cache-dir Cython
32+
pip install codespell -r requirements.txt
33+
pip install .
File renamed without changes.

.github/workflows/windows.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
on:
2+
push:
3+
branches:
4+
- main
5+
pull_request:
6+
branches:
7+
- main
8+
9+
name: Windows build
10+
jobs:
11+
test-windows:
12+
runs-on: windows-latest
13+
steps:
14+
- uses: actions/checkout@v3
15+
- name: Install miniconda
16+
uses: conda-incubator/setup-miniconda@v2
17+
with:
18+
auto-activate-base: true
19+
python-version: "3.10"
20+
- name: Install GDAL
21+
run: conda install -c conda-forge gdal --yes
22+
- name: Test GDAL installation
23+
run: |
24+
python -c "from osgeo import gdal"
25+
gdalinfo --version
26+
- name: Install dependencies
27+
run: |
28+
python -m pip install --upgrade pip
29+
pip install --no-cache-dir Cython
30+
pip install -r requirements.txt
31+
pip install .

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ segment-anything-py
22
opencv-python
33
pycocotools
44
matplotlib
5-
onnxruntime
5+
onnxruntime; python_version < '3.11'
66
onnx
77
geopandas
88
rasterio

0 commit comments

Comments
 (0)