https://github.com/insarlab/MintPy
Raw File
Tip revision: e823b4d8fd5df31b2ee1a2ce791b1abcc64de776 authored by pre-commit-ci[bot] on 26 March 2024, 01:00:30 UTC
[pre-commit.ci] pyupgrade: v3.15.1 → v3.15.2 (#1168)
Tip revision: e823b4d
config.yml
version: 2.1
jobs:
  unit-n-workflow-tests:
    docker:
      - image: ubuntu:bionic
        environment:
          CONDA_PREFIX: /root/tools/miniforge
          MINTPY_HOME: /root/tools/MintPy
        user: root
    working_directory: /root/tools/MintPy
    resource_class: large

    steps:
      - checkout
      - run:
          name: Setting Up Environment with Miniforge
          command: |
            apt update
            apt-get update --yes && apt-get upgrade --yes
            apt-get install --yes git wget
            # install miniforge
            mkdir -p ${HOME}/tools
            cd ${HOME}/tools
            wget https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-Linux-x86_64.sh
            bash Miniforge3-Linux-x86_64.sh -b -p ${HOME}/tools/miniforge
            ${HOME}/tools/miniforge/bin/mamba init bash
            # modify/export env var PATH to BASH_ENV to be shared across run steps
            echo 'export PATH=${CONDA_PREFIX}/bin:${PATH}' >> ${BASH_ENV}

      - run:
          name: Installing MintPy
          no_output_timeout: 30m
          command: |
            export PYTHONUNBUFFERED=1
            # install dependencies and source code
            mamba install --verbose --yes gdal">=3" --file ${MINTPY_HOME}/requirements.txt
            python -m pip install ${MINTPY_HOME}
            # test installation
            smallbaselineApp.py -h
            tropo_pyaps3.py -h
            solid_earth_tides.py -h

      - run:
          name: Unit Test
          command: |
            ${MINTPY_HOME}/tests/objects/euler_pole.py
            ${MINTPY_HOME}/tests/objects/ionex.py
            ${MINTPY_HOME}/tests/asc_desc2horz_vert.py
            ${MINTPY_HOME}/tests/dem_error.py

      - run:
          name: Integration Test 1/4 - FernandinaSenDT128 (ISCE/topsStack)
          command: |
            mkdir -p ${HOME}/data
            ${MINTPY_HOME}/tests/smallbaselineApp.py --dir ${HOME}/data --dset FernandinaSenDT128

      - run:
          name: Integration Test 2/4 - SanFranSenDT42 (ARIA)
          command: |
            mkdir -p ${HOME}/data
            ${MINTPY_HOME}/tests/smallbaselineApp.py --dir ${HOME}/data --dset SanFranSenDT42

      - run:
          name: Integration Test 3/5 - RidgecrestSenDT71 (HyP3)
          command: |
            mkdir -p ${HOME}/data
            ${MINTPY_HOME}/tests/smallbaselineApp.py --dir ${HOME}/data --dset RidgecrestSenDT71

      - run:
          name: Integration Test 4/5 - WellsEnvD2T399 (Gamma)
          command: |
            mkdir -p ${HOME}/data
            ${MINTPY_HOME}/tests/smallbaselineApp.py --dir ${HOME}/data --dset WellsEnvD2T399

      - run:
          name: Integration Test 5/5 - WCapeSenAT29 (SNAP)
          command: |
            mkdir -p ${HOME}/data
            ${MINTPY_HOME}/tests/smallbaselineApp.py --dir ${HOME}/data --dset WCapeSenAT29

workflows:
  version: 2
  unit-n-workflow-tests:
    jobs:
      - unit-n-workflow-tests
back to top