diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index ee0cdf6e..e2dc705d 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -18,8 +18,8 @@ jobs: strategy: fail-fast: false matrix: - os: [macos-12, macos-11] - python-version: ["3.8", "3.9", "3.10"] + os: [macos-12, macos-13] + python-version: ["3.11"] runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/pypi.yml b/.github/workflows/pypi.yml index 64d77ff4..c138f205 100644 --- a/.github/workflows/pypi.yml +++ b/.github/workflows/pypi.yml @@ -5,9 +5,9 @@ name: PyPI tests on: push: - branches: [ "pygmtsar" ] + branches: [ "-pygmtsar" ] pull_request: - branches: [ "pygmtsar" ] + branches: [ "-pygmtsar" ] permissions: contents: read @@ -19,7 +19,7 @@ jobs: fail-fast: false matrix: os: ["ubuntu-latest"] - python-version: ["3.8", "3.9", "3.10"] + python-version: ["3.x"] runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v3 @@ -85,7 +85,7 @@ jobs: fail-fast: false matrix: os: ["ubuntu-latest"] - python-version: ["3.8", "3.9", "3.10"] + python-version: ["3.x"] runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v3 @@ -149,7 +149,7 @@ jobs: fail-fast: false matrix: os: ["ubuntu-latest"] - python-version: ["3.8", "3.9", "3.10"] + python-version: ["3.x"] runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml index 7dbdf31b..a9913de9 100644 --- a/.github/workflows/ubuntu.yml +++ b/.github/workflows/ubuntu.yml @@ -18,8 +18,8 @@ jobs: strategy: fail-fast: false matrix: - os: ["ubuntu-22.04", "ubuntu-20.04"] - python-version: ["3.8", "3.9", "3.10"] + os: ["ubuntu-latest"] + python-version: ["3.10", "3.11"] runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v3 @@ -78,3 +78,123 @@ jobs: name: Plots (${{ matrix.os }}, ${{ matrix.python-version }}) path: tests/*.jpg if-no-files-found: error + + S1A_2016_Kumamoto_Earthquake: + + strategy: + fail-fast: false + matrix: + os: ["ubuntu-latest"] + python-version: ["3.10", "3.11"] + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v3 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + - name: Install system dependencies + run: | + uname -a + # prepare system + sudo apt update + # https://github.com/gmtsar/gmtsar/wiki/GMTSAR-Wiki-Page + sudo apt install -y csh subversion autoconf libtiff5-dev libhdf5-dev wget + sudo apt install -y liblapack-dev + sudo apt install -y gfortran + sudo apt install -y g++ + sudo apt install -y libgmt-dev + sudo apt install -y gmt-dcw gmt-gshhg + # gmt-gshhg-full should be installed automatically (it is required to use GMTSAR landmask) + sudo apt install -y gmt + # add missed package + sudo apt install -y make + - name: Compile GMTSAR + run: | + git clone --branch master https://github.com/gmtsar/gmtsar GMTSAR + cd GMTSAR + autoconf + ./configure --with-orbits-dir=/tmp CFLAGS='-z muldefs' LDFLAGS='-z muldefs' + make CFLAGS='-z muldefs' LDFLAGS='-z muldefs' + make install + # check installation + export PATH=$PATH:/home/runner/work/gmtsar/gmtsar/GMTSAR/bin + echo "Start gmtsar_sharedir.csh" + gmtsar_sharedir.csh + - name: Install PyGMTSAR + run: | + # upgrade package to resolve dependencies + pip3 install click --upgrade + pip3 install matplotlib seaborn + pip3 install -e ./pygmtsar/ + - name: Run test + working-directory: tests + run: | + export PATH=$PATH:/home/runner/work/gmtsar/gmtsar/GMTSAR/bin + sh ./S1A_2016_Kumamoto_Earthquake.sh force + - name: Archive test results + uses: actions/upload-artifact@v3 + with: + name: Plots S1A_2016_Kumamoto_Earthquake (${{ matrix.os }}, ${{ matrix.python-version }}) + path: tests/*.jpg + if-no-files-found: error + + S1AB_2021_Crete_Earthquake: + + strategy: + fail-fast: false + matrix: + os: ["ubuntu-latest"] + python-version: ["3.10", "3.11"] + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v3 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + - name: Install system dependencies + run: | + uname -a + # prepare system + sudo apt update + # https://github.com/gmtsar/gmtsar/wiki/GMTSAR-Wiki-Page + sudo apt install -y csh subversion autoconf libtiff5-dev libhdf5-dev wget + sudo apt install -y liblapack-dev + sudo apt install -y gfortran + sudo apt install -y g++ + sudo apt install -y libgmt-dev + sudo apt install -y gmt-dcw gmt-gshhg + # gmt-gshhg-full should be installed automatically (it is required to use GMTSAR landmask) + sudo apt install -y gmt + # add missed package + sudo apt install -y make + - name: Compile GMTSAR + run: | + git clone --branch master https://github.com/gmtsar/gmtsar GMTSAR + cd GMTSAR + autoconf + ./configure --with-orbits-dir=/tmp CFLAGS='-z muldefs' LDFLAGS='-z muldefs' + make CFLAGS='-z muldefs' LDFLAGS='-z muldefs' + make install + # check installation + export PATH=$PATH:/home/runner/work/gmtsar/gmtsar/GMTSAR/bin + echo "Start gmtsar_sharedir.csh" + gmtsar_sharedir.csh + - name: Install PyGMTSAR + run: | + # upgrade package to resolve dependencies + pip3 install click --upgrade + pip3 install matplotlib seaborn + pip3 install -e ./pygmtsar/ + - name: Run test + working-directory: tests + run: | + export PATH=$PATH:/home/runner/work/gmtsar/gmtsar/GMTSAR/bin + sh ./S1AB_2021_Crete_Earthquake.sh force + - name: Archive test results + uses: actions/upload-artifact@v3 + with: + name: Plots S1AB_2021_Crete_Earthquake (${{ matrix.os }}, ${{ matrix.python-version }}) + path: tests/*.jpg + if-no-files-found: error