Skip to content

Commit

Permalink
Merge pull request #15 from tsutterley/testing
Browse files Browse the repository at this point in the history
add macos-latest to testing strategy
  • Loading branch information
tsutterley authored Aug 15, 2020
2 parents 3c34a0c + f271412 commit 66ec509
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 6 deletions.
19 changes: 16 additions & 3 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@ on:
jobs:
build:

runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
python-version: [3.5, 3.6, 3.7, 3.8]

steps:
Expand All @@ -23,9 +24,21 @@ jobs:
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
- name: Install dependencies for Linux
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt-get install libproj-dev proj-data proj-bin libgeos-dev libhdf5-dev libnetcdf-dev
sudo apt-get install libproj-dev proj-data proj-bin libgeos-dev
sudo apt-get install libhdf5-dev libnetcdf-dev
pip install --upgrade pip
pip install flake8 pytest pytest-cov numpy
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Install dependencies for MacOS
if: matrix.os == 'macos-latest'
run: |
brew install proj
brew install geos
brew install hdf5
brew install netcdf
pip install --upgrade pip
pip install flake8 pytest pytest-cov numpy
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
Expand Down
19 changes: 16 additions & 3 deletions .github/workflows/python-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@ on:
jobs:
build:

runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
python-version: [3.5, 3.6, 3.7, 3.8]

steps:
Expand All @@ -20,9 +21,21 @@ jobs:
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
- name: Install dependencies for Linux
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt-get install libproj-dev proj-data proj-bin libgeos-dev libhdf5-dev libnetcdf-dev
sudo apt-get install libproj-dev proj-data proj-bin libgeos-dev
sudo apt-get install libhdf5-dev libnetcdf-dev
pip install --upgrade pip
pip install flake8 pytest pytest-cov numpy
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Install dependencies for MacOS
if: matrix.os == 'macos-latest'
run: |
brew install proj
brew install geos
brew install hdf5
brew install netcdf
pip install --upgrade pip
pip install flake8 pytest pytest-cov numpy
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
Expand Down

0 comments on commit 66ec509

Please sign in to comment.