Skip to content

Commit

Permalink
Merge pull request #159 from akrherz/github_actions
Browse files Browse the repository at this point in the history
migrate Linux x64 CI build to Github Actions
  • Loading branch information
jswhit committed Dec 2, 2020
2 parents d783c5d + e75c0cc commit e93129d
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 2 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Install and Test
on: [push, pull_request]
jobs:
build-linux:
name: Python (${{ matrix.python-version }})
runs-on: ubuntu-latest
env:
PROJ_DIR: /usr
PROJ_LIB: /usr/share/proj
strategy:
matrix:
python-version: ["2.7", "3.7", "3.8"]
steps:

- uses: actions/checkout@v2

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}

- name: Install Ubuntu Dependencies
run: |
sudo apt-get update
sudo apt-get install libproj-dev proj-bin libeccodes-dev
- name: Update Pip
run: |
python -m pip install --upgrade pip
- name: Install pygrib dependencies via pip
run: |
python -m pip install cython numpy "pyproj<3.0.0"
- name: Install pygrib
run: |
python setup.py install
- name: Test
run: |
python test.py
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ dist: focal
sudo: false

arch:
- amd64
- ppc64le

addons:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![Linux Build Status](https://travis-ci.org/jswhit/pygrib.svg?branch=master)](https://travis-ci.org/jswhit/pygrib)
[![Linux Build Status](https://github.com/jswhit/pygrib/workflows/Install%20and%20Test/badge.svg)](https://github.com/jswhit/pygrib/actions)
[![PyPI package](https://badge.fury.io/py/pygrib.svg)](http://python.org/pypi/pygrib)
[![Anaconda-Server Badge](https://anaconda.org/conda-forge/pygrib/badges/version.svg)](https://anaconda.org/conda-forge/pygrib)
[![DOI](https://zenodo.org/badge/28599617.svg)](https://zenodo.org/badge/latestdoi/28599617)
Expand Down

0 comments on commit e93129d

Please sign in to comment.