Skip to content

Commit

Permalink
Add hdf5 and netcdf installation for macos test env
Browse files Browse the repository at this point in the history
  • Loading branch information
SorooshMani-NOAA committed Feb 23, 2023
1 parent 8cad399 commit bbca5ae
Showing 1 changed file with 18 additions and 4 deletions.
22 changes: 18 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,18 @@ jobs:
with:
path: ${{ env.pythonLocation }}
key: test-${{ runner.os }}-${{ env.pythonLocation }}-${{ hashFiles('pyproject.toml') }}
- name: install dependencies
- name: install linux dependencies
run: |
sudo apt install libhdf5-dev
sudo apt install libnetcdf-dev
pip install ".[testing]"
if: runner.os == 'Linux'
- name: install macos dependencies
run: |
brew install hdf5
brew install netcdf
if: runner.os == 'macOS'
- name: install repo
run: pip install ".[testing]"
- name: run tests
run: pytest --numprocesses auto
test_with_coverage:
Expand All @@ -83,11 +90,18 @@ jobs:
with:
path: ${{ env.pythonLocation }}
key: test-${{ runner.os }}-${{ env.pythonLocation }}-${{ hashFiles('pyproject.toml') }}
- name: install dependencies
- name: install linux dependencies
run: |
sudo apt install libhdf5-dev
sudo apt install libnetcdf-dev
pip install ".[testing]"
if: runner.os == 'Linux'
- name: install macos dependencies
run: |
brew install hdf5
brew install netcdf
if: runner.os == 'macOS'
- name: install repo
run: pip install ".[testing]"
- name: run tests with coverage
run: pytest --numprocesses auto --cov . --cov-report xml:coverage.xml
- name: show coverage report
Expand Down

0 comments on commit bbca5ae

Please sign in to comment.