Skip to content

Commit

Permalink
Update MacOS workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
giswqs committed Sep 21, 2024
1 parent 5a42dcc commit 08af973
Showing 1 changed file with 33 additions and 10 deletions.
43 changes: 33 additions & 10 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,27 +16,50 @@ jobs:
matrix:
config:
- { os: macOS-latest, py: "3.12" }
defaults:
run:
shell: bash -el {0}
env:
SDKROOT: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk
steps:
- name: CHECKOUT CODE
uses: actions/checkout@v4
- name: SETUP PYTHON
uses: actions/setup-python@v5
- uses: actions/checkout@v4

- name: Setup Python
uses: conda-incubator/setup-miniconda@v3
with:
auto-activate-base: true
python-version: ${{ matrix.config.py }}
channels: conda-forge,defaults
channel-priority: true
miniconda-version: latest

- name: Cache dependencies
uses: actions/cache@v4
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: |
python -m pip install --upgrade pip
pip install --no-cache-dir Cython
pip install --find-links=https://girder.github.io/large_image_wheels --no-cache GDAL
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: |
python -m pip install --upgrade pip
pip install --no-cache-dir Cython
pip install codespell -r requirements.txt
pip install -r requirements.txt
pip install .
- name: Test import
run: python -c "import samgeo; print('samgeo import successful')"

0 comments on commit 08af973

Please sign in to comment.