Skip to content

[pre-commit.ci] pre-commit autoupdate #166

[pre-commit.ci] pre-commit autoupdate

[pre-commit.ci] pre-commit autoupdate #166

Workflow file for this run

name: pytest
on: [pull_request, push]
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref }}
cancel-in-progress: true
jobs:
pytest:
strategy:
matrix:
os:
- label: Linux
runner: ubuntu-latest
deps:
- label: Latest
spec: ""
- label: Minimum
spec: >-
dask=2022.05.1
h5py=3
isce3=0.12
numpy=1.21
python=3.8
rasterio=1.3
scipy=1.5
fail-fast: false
name: ${{ matrix.os.label }} • ${{matrix.deps.label }}
runs-on: ${{ matrix.os.runner }}
defaults:
run:
shell: bash -l {0}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup environment
uses: mamba-org/setup-micromamba@v1
with:
environment-file: requirements.txt
environment-name: tophu
create-args: ${{ matrix.deps.spec }}
condarc: |
channels:
- conda-forge
- nodefaults
- name: Install
run: |
pip install --no-deps .
- name: Test
run: |
micromamba install -f test/requirements.txt -c conda-forge
pytest --cov-report=xml
- name: Coverage report
uses: codecov/codecov-action@v3