Skip to content

Commit

Permalink
Disable PyPI CI test. Update Python version for other CI tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexeyPechnikov committed Sep 10, 2023
1 parent dfc2af4 commit d74073a
Show file tree
Hide file tree
Showing 3 changed files with 129 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ name: PyPI tests

on:
push:
branches: [ "pygmtsar" ]
branches: [ "-pygmtsar" ]
pull_request:
branches: [ "pygmtsar" ]
branches: [ "-pygmtsar" ]

permissions:
contents: read
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
124 changes: 122 additions & 2 deletions .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

0 comments on commit d74073a

Please sign in to comment.