Skip to content

Commit

Permalink
add osx
Browse files Browse the repository at this point in the history
  • Loading branch information
mmann1123 authored Mar 30, 2024
1 parent 5e6949e commit 17ee429
Showing 1 changed file with 41 additions and 1 deletion.
42 changes: 41 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,48 @@ jobs:
run: |
pip install testfixtures
pip install ".[ml]"
python -m unittest discover -p 'ml_*.py'
python -m unittest discover -p 'ml_*.py'
runs-on: macos-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10"]
steps:
- uses: actions/checkout@v3
- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Cache pip
uses: actions/cache@v2
with:
path: |
~/Library/Caches/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/pyproject.toml', '**/poetry.lock') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install GDAL binaries
run: |
brew install gdal
- name: Install Python packages
run: |
pip install -U pip setuptools wheel
pip install numpy
GDAL_VERSION=$(gdal-config --version | awk -F'[.]' '{print $1"."$2}')
pip install GDAL==$GDAL_VERSION --no-cache-dir
pip install arosics
- name: Install GeoWombat
run: |
pip install ".[stac,web,coreg,perf,tests]"
- name: Run Unittests
run: |
pip install testfixtures
python -m unittest discover -p 'test_*.py'
- name: Run ml Unittests
run: |
pip install testfixtures
pip install ".[ml]"
python -m unittest discover -p 'ml_*.py'
# Version:
# needs: Tests
Expand Down

0 comments on commit 17ee429

Please sign in to comment.