[pre-commit.ci] pre-commit autoupdate #76
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
name: macOS build with GDAL | |
jobs: | |
test-macOS: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.12" | |
- name: Install GDAL | |
run: brew install gdal | |
- name: Set up GDAL | |
run: | | |
GDAL_VER=$(find /usr/local/Cellar/gdal/ -name "lib" | awk -F"/" '{print $7}') | |
GDAL_LDPATH=/usr/local/Cellar/gdal/$GDAL_VER/lib/ | |
export LIBRARY_PATH=$GDAL_LDPATH | |
echo $LIBRARY_PATH | |
- name: Test GDAL installation | |
run: | | |
gdalinfo --version | |
# - name: Install cartopy | |
# run: | | |
# brew install proj geos | |
# pip3 install shapely --no-binary shapely numpy | |
# brew install pkg-config | |
# export PKG_CONFIG_PATH=/usr/local/bin/pkgconfig | |
# export CFLAGS="-I/usr/local/include" | |
# pip3 install cartopy | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install --no-cache-dir Cython | |
pip install -r requirements.txt | |
pip install . |