Skip to content

Commit

Permalink
Added Github workflow for CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
dvuckovic committed Sep 8, 2021
1 parent 852d229 commit 42a57d1
Show file tree
Hide file tree
Showing 2 changed files with 100 additions and 4 deletions.
97 changes: 97 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
name: ci

# Controls when the action will run
on:

# Trigger the workflow on all pushes, except on tag creation
push:
branches:
- '**'
tags-ignore:
- '**'

# Trigger the workflow on all pull requests
pull_request: ~

# Allow workflow to be dispatched on demand
workflow_dispatch: ~

jobs:
ci:
name: ci
strategy:
matrix:
name:
- [email protected]
- [email protected]
- [email protected]
- [email protected]
# Currently disabled because of dynamic library linking issues
# - [email protected]
- [email protected]
include:
- name: [email protected]
os: ubuntu-20.04
compiler: gnu-10
compiler_cc: gcc-10
compiler_cxx: g++-10
compiler_fc: gfortran-10
- name: [email protected]
os: ubuntu-20.04
compiler: clang-12
compiler_cc: clang-12
compiler_cxx: clang++-12
compiler_fc: gfortran-10
- name: [email protected]
os: ubuntu-18.04
compiler: gnu-10
compiler_cc: gcc-10
compiler_cxx: g++-10
compiler_fc: gfortran-10
- name: [email protected]
os: ubuntu-18.04
compiler: clang-9
compiler_cc: clang-9
compiler_cxx: clang++-9
compiler_fc: gfortran-9
# Currently disabled because of dynamic library linking issues
# - name: [email protected]
# os: macos-10.15
# compiler: gnu-10
# compiler_cc: gcc-10
# compiler_cxx: g++-10
# compiler_fc: gfortran-10
# Xcode compiler requires empty environment variables, so we pass null (~) here
- name: [email protected]
os: macos-10.15
compiler: clang-12
compiler_cc: ~
compiler_cxx: ~
compiler_fc: gfortran-10
runs-on: ${{ matrix.os }}
steps:
- name: Checkout Repository
uses: actions/checkout@v2

- name: Install Dependencies
shell: bash -eux {0}
run: |
brew install netcdf pango proj
echo "PROJ_PATH=$(brew --prefix proj)" >> $GITHUB_ENV
echo "NETCDF_PATH=$(brew --prefix netcdf)" >> $GITHUB_ENV
- name: Build & Test
id: build-test
uses: ecmwf-actions/build-package@v1
with:
self_coverage: true
dependencies: |
ecmwf/ecbuild
ecmwf/eccodes
dependency_branch: develop

- name: Codecov Upload
if: steps.build-test.outputs.coverage_file && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/develop')
uses: codecov/codecov-action@v2
with:
files: ${{ steps.build-test.outputs.coverage_file }}
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
Magics README
=============

[![Linux & macOS: master](https://img.shields.io/travis/ecmwf/magics/master.svg?label=Linux-and-macOS-master)](https://travis-ci.org/ecmwf/magics/branches)
[![Linux & macOS: develop](https://img.shields.io/travis/ecmwf/magics/develop.svg?label=Linux-and-macOS-dev)](https://travis-ci.org/ecmwf/magics/branches)
[![Linux & macOS: master](https://img.shields.io/github/workflow/status/ecmwf/magics/ci/master?label=Linux-and-macOS-master)](https://github.com/ecmwf/magics/actions/workflows/ci.yml?query=branch%3Amaster)
[![Linux & macOS: develop](https://img.shields.io/github/workflow/status/ecmwf/magics/ci/develop?label=Linux-and-macOS-develop)](https://github.com/ecmwf/magics/actions/workflows/ci.yml?query=branch%3Adevelop)
[![Windows: master](https://img.shields.io/appveyor/ci/ecmwf/magics/master.svg?label=Windows-master)](https://ci.appveyor.com/project/ecmwf/magics/branch/master)
[![Windows: develop](https://img.shields.io/appveyor/ci/ecmwf/magics/develop.svg?label=Windows-dev)](https://ci.appveyor.com/project/ecmwf/magics/branch/develop)

Expand All @@ -25,8 +25,7 @@ Gallery of Notebooks
Docker Image
------------

[![test](https://github.com/ecmwf/magics/actions/workflows/docker-latest.yml/badge.svg)](https://github.com/ecmwf/magics/actions)

[![DockerHub](https://github.com/ecmwf/magics/actions/workflows/docker-latest.yml/badge.svg)](https://github.com/ecmwf/magics/actions/workflows/docker-latest.yml)
[![Docker Pulls](https://img.shields.io/docker/pulls/ecmwf/magics)](https://hub.docker.com/r/ecmwf/magics)


Expand Down

0 comments on commit 42a57d1

Please sign in to comment.