Revision 27f8924d4b7ad41a9e0aa0e2772ea6426dd503c6 authored by pre-commit-ci[bot] on 15 November 2022, 03:02:28 UTC, committed by GitHub on 15 November 2022, 03:02:28 UTC
updates:
- [github.com/asottile/pyupgrade: v3.2.0 → v3.2.2](https://github.com/asottile/pyupgrade/compare/v3.2.0...v3.2.2)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 16f4596
Raw File
config.yml
version: 2.1
jobs:
  unit-n-workflow-tests:
    docker:
      - image: ubuntu:bionic
        environment:
          CONDA_PREFIX: /root/tools/miniconda3
          MINTPY_HOME: /root/tools/MintPy
        user: root
    working_directory: /root/tools/MintPy
    resource_class: large

    steps:
      - checkout
      - run:
          name: Setting Up Environment with Miniconda
          command: |
            apt update
            apt-get update --yes && apt-get upgrade --yes
            apt-get install --yes git wget
            # download and install miniconda3
            mkdir -p ${HOME}/tools
            cd ${HOME}/tools
            wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
            bash Miniconda3-latest-Linux-x86_64.sh -b -p ${HOME}/tools/miniconda3
            ${HOME}/tools/miniconda3/bin/conda init bash
            # add conda-forge channel and install mamba
            ${HOME}/tools/miniconda3/bin/conda config --add channels conda-forge
            ${HOME}/tools/miniconda3/bin/conda config --set channel_priority strict
            ${HOME}/tools/miniconda3/bin/conda install --yes mamba
            cat ${HOME}/.condarc
            # 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
            source activate root
            mamba install --verbose --yes gdal">=3" --file ${MINTPY_HOME}/requirements.txt
            python -m pip install ${MINTPY_HOME}
            # test installation
            smallbaselineApp.py -v
            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: Workflow Test 1/4 - FernandinaSenDT128 (ISCE/topsStack)
          command: |
            mkdir -p ${HOME}/data
            ${MINTPY_HOME}/tests/smallbaselineApp.py --dir ${HOME}/data --dset FernandinaSenDT128

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

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

      - run:
          name: Workflow Test 4/4 - 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