Skip to content

Commit

Permalink
Add GitHub actions ci (#570)
Browse files Browse the repository at this point in the history
* added initial ci workflow

* added coveralls

* skip travis
  • Loading branch information
cehbrecht committed Feb 8, 2021
1 parent da2019e commit 4398329
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 57 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
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
- 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:
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: |
pip3 install -e .
cd docs && make html
if: matrix.python-version == 3.6
- name: run flake8 ⚙️
run: flake8 pywps
if: matrix.python-version == 3.6
57 changes: 0 additions & 57 deletions .travis.yml

This file was deleted.

1 change: 1 addition & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
coverage
coveralls
flake8
pylint
six
Expand Down

0 comments on commit 4398329

Please sign in to comment.