try macos, windows tests
@@ -20,9 +20,10 @@ jobs:
uses: pre-commit/action@v2.0.3
build:
- runs-on: ubuntu-latest
+ runs-on: ${{ matrix.os }}
strategy:
matrix:
+ os: [ubuntu-latest, windows-latest, macOS-latest]
python-version: ["3.7", "3.8", "3.9", "3.10"]
steps:
- uses: actions/setup-python@v2
@@ -30,13 +31,9 @@ jobs:
python-version: ${{ matrix.python-version }}
- name: Checkout code
uses: nschloe/action-cached-lfs-checkout@v1
- - name: Install system dependencies
- run: |
- sudo apt-get update
- sudo apt-get install -y libhdf5-dev libnetcdf-dev
- name: Test with tox
run: |
pip install tox
tox -- --cov meshio --cov-report xml --cov-report term
- uses: codecov/codecov-action@v1
- if: ${{ matrix.python-version == '3.9' }}
+ if: ${{ matrix.python-version == '3.9' }} and ${{ matrix.os == "ubuntu-latest" }}
