From 86289bc9a6902309013d9227acc6211cb01d8a3b Mon Sep 17 00:00:00 2001 From: Carsten Ehbrecht Date: Wed, 27 Jan 2021 18:49:57 +0100 Subject: [PATCH 1/6] added initial ci workflow --- .github/workflows/main.yml | 37 +++++++++++++++++++++++++++++++++++++ .travis.yml | 6 +++--- 2 files changed, 40 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 000000000..7df5e8ab7 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,37 @@ +name: build ⚙️ + +on: [ push, pull_request ] + +jobs: + main: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: [3.6, 3.7, 3.8, 3.9] + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + COVERALLS_SERVICE_NAME: github + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-python@v2 + name: Setup Python ${{ matrix.python-version }} + with: + python-version: ${{ matrix.python-version }} + - name: Install requirements 📦 + run: | + pip3 install pip --upgrade + pip3 install -r requirements.txt + pip3 install -r requirements-dev.txt + pip3 install -r requirements-extra.txt + pip3 install -r requirements-gdal.txt + - name: run tests ⚙️ + run: python3 -m unittest tests + - name: run coveralls ⚙️ + run: coveralls + if: matrix.python-version == 3.6 + - name: build docs 🏗️ + run: cd docs && make html + if: matrix.python-version == 3.6 + - name: run flake8 ⚙️ + run: flake8 pywps + if: matrix.python-version == 3.6 diff --git a/.travis.yml b/.travis.yml index 20d5aae5f..7180dbc80 100644 --- a/.travis.yml +++ b/.travis.yml @@ -47,9 +47,9 @@ after_success: - debuild -b -uc -us # whitelist -# branches: -# only: -# - master +branches: + only: + - master # notifications: # irc: From 4852ba955a92b330e171e8f15992b4e85ef10475 Mon Sep 17 00:00:00 2001 From: Carsten Ehbrecht Date: Wed, 27 Jan 2021 18:54:00 +0100 Subject: [PATCH 2/6] install gdal --- .github/workflows/main.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 7df5e8ab7..76311ea92 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -13,6 +13,9 @@ jobs: COVERALLS_SERVICE_NAME: github steps: - uses: actions/checkout@v2 + - name: Install packages + run: | + sudo apt-get -y install gdal-bin libgdal-dev libnetcdf-dev libhdf5-dev - uses: actions/setup-python@v2 name: Setup Python ${{ matrix.python-version }} with: From 00196328da2499552d2be598f4f8666b96beeead Mon Sep 17 00:00:00 2001 From: Carsten Ehbrecht Date: Wed, 27 Jan 2021 18:58:57 +0100 Subject: [PATCH 3/6] added coveralls --- requirements-dev.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/requirements-dev.txt b/requirements-dev.txt index b236394d8..1c55bef67 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -1,4 +1,5 @@ coverage +coveralls flake8 flufl.enum pylint From 2669be03470f9ff611fed8185d7b7d1d177e0f67 Mon Sep 17 00:00:00 2001 From: Carsten Ehbrecht Date: Wed, 27 Jan 2021 19:05:10 +0100 Subject: [PATCH 4/6] fix doc build --- .github/workflows/main.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 76311ea92..e60be13a0 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -33,7 +33,9 @@ jobs: run: coveralls if: matrix.python-version == 3.6 - name: build docs 🏗️ - run: cd docs && make html + run: | + pip3 install -e . + cd docs && make html if: matrix.python-version == 3.6 - name: run flake8 ⚙️ run: flake8 pywps From 4c3d32146cc90700771985eef1fbd6697728966e Mon Sep 17 00:00:00 2001 From: Carsten Ehbrecht Date: Wed, 27 Jan 2021 19:06:22 +0100 Subject: [PATCH 5/6] fix yaml --- .github/workflows/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e60be13a0..7f25bda6b 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -34,8 +34,8 @@ jobs: if: matrix.python-version == 3.6 - name: build docs 🏗️ run: | - pip3 install -e . - cd docs && make html + pip3 install -e . + cd docs && make html if: matrix.python-version == 3.6 - name: run flake8 ⚙️ run: flake8 pywps From 29756829e6bf9d12b839285ca7c79e06db380b05 Mon Sep 17 00:00:00 2001 From: Carsten Ehbrecht Date: Wed, 27 Jan 2021 19:08:59 +0100 Subject: [PATCH 6/6] skip travis --- .travis.yml | 57 ----------------------------------------------------- 1 file changed, 57 deletions(-) delete mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 7180dbc80..000000000 --- a/.travis.yml +++ /dev/null @@ -1,57 +0,0 @@ -language: python - -# sudo: required -os: linux -dist: xenial - -python: - - "3.6" - -git: - submodules: false - -addons: - apt: - sources: - - sourceline: 'ppa:ubuntugis/ppa' - packages: - - libnetcdf-dev - - libhdf5-dev - - gdal-bin - - libgdal-dev - - devscripts - - fakeroot - - debhelper - - python-setuptools - -# Handle Git submodules yourself -git: - submodules: false - -install: - - pip install pip --upgrade - - pip install -r requirements.txt - - pip install -r requirements-gdal.txt - - pip install -r requirements-extra.txt - - pip install -r requirements-dev.txt - - pip install coveralls - -script: - - python -m unittest tests - - coverage run --source=pywps -m unittest tests - - flake8 pywps/ - -after_success: - - coveralls - - python setup.py sdist bdist_wheel --universal - - debuild -b -uc -us - -# whitelist -branches: - only: - - master - -# notifications: -# irc: -# channels: -# - "irc.freenode.org#geopython"