Skip to content

Remove dependency on numpy-1.x as zfpy and pyzgy are numpy-2.x compat… #202

Remove dependency on numpy-1.x as zfpy and pyzgy are numpy-2.x compat…

Remove dependency on numpy-1.x as zfpy and pyzgy are numpy-2.x compat… #202

Workflow file for this run

name: Run Tests
on:
push:
branches: [ '*' ]
pull_request:
branches: [ master ]
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ["windows-latest", "ubuntu-latest", "macos-latest"]
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
exclude:
- os: "macos-latest"
python-version: "3.7"
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install testing dependencies
run: |
python -m pip install --upgrade pip
pip install pytest mock
- name: Install seismic-zfp dependencies with VDS
if: matrix.os != 'macos-latest' && matrix.python-version != '3.7'
run: pip install .[zgy,vds,xr,azure]
- name: Install seismic-zfp dependencies without VDS
if: matrix.os == 'macos-latest'
run: pip install .[zgy,xr,azure]
- name: Install seismic-zfp dependencies without VDS or XR
if: matrix.python-version == '3.7'
run: pip install .[zgy,azure]
- name: Test with pytest
run: |
pytest