Merge pull request #98 from equinor/snyk-fix-51dbae62ec89a0a7b265e51b… #220
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.8", "3.9", "3.10", "3.11", "3.12"] | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
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.12' | |
run: pip install .[zgy,vds,xr,azure] | |
- name: Install seismic-zfp dependencies without VDS | |
if: matrix.os == 'macos-latest' || matrix.python-version == '3.12' | |
run: pip install .[zgy,xr,azure] | |
- name: Test with pytest | |
run: | | |
pytest |