Skip to content

Commit

Permalink
Move to Github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
jipolanco committed Nov 30, 2020
1 parent 292d1ac commit 5442f87
Show file tree
Hide file tree
Showing 3 changed files with 96 additions and 85 deletions.
94 changes: 94 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
name: CI

on:
- push
- pull_request

env:
JULIA_MPI_BINARY: system

jobs:
test:
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
version:
- '1.3'
- '1.5'
- 'nightly'
os:
- ubuntu-20.04
arch:
- x64
steps:
- name: Install libraries
run: |
sudo apt-get update
sudo apt-get install mpich libmpich-dev
- uses: actions/checkout@v2

- uses: julia-actions/setup-julia@v1
with:
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}

- uses: actions/cache@v1
env:
cache-name: cache-artifacts
with:
path: ~/.julia/artifacts
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
restore-keys: |
${{ runner.os }}-test-${{ env.cache-name }}-
${{ runner.os }}-test-
${{ runner.os }}-
- name: Precompile
run: |
julia --project -e '
using Pkg
using InteractiveUtils
versioninfo()
pkg"instantiate"
pkg"precompile"
using MPI
println("\n", MPI.MPI_LIBRARY_VERSION_STRING)'
- uses: julia-actions/julia-buildpkg@v1

- uses: julia-actions/julia-runtest@v1

- uses: julia-actions/julia-processcoverage@v1
- uses: codecov/codecov-action@v1
with:
file: lcov.info

docs:
name: Documentation
runs-on: ubuntu-20.04
steps:
- name: Install libraries
run: |
sudo apt-get update
sudo apt-get install mpich libmpich-dev
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@latest
with:
version: '1.5'
- name: Install dependencies
run: |
julia --project=docs -e '
using Pkg
Pkg.develop(PackageSpec(path=pwd()))
Pkg.instantiate()'
- name: Build and deploy
run: julia --project=docs docs/make.jl
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}

# vim: shiftwidth=2
82 changes: 0 additions & 82 deletions .travis.yml

This file was deleted.

5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@
[![Dev](https://img.shields.io/badge/docs-dev-blue.svg)](https://jipolanco.github.io/PencilFFTs.jl/dev/)
[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.3618781.svg)](https://doi.org/10.5281/zenodo.3618781)

[![Build Status](https://travis-ci.com/jipolanco/PencilFFTs.jl.svg?branch=master)](https://travis-ci.com/jipolanco/PencilFFTs.jl)
[![codecov](https://codecov.io/gh/jipolanco/PencilFFTs.jl/branch/master/graph/badge.svg)](https://codecov.io/gh/jipolanco/PencilFFTs.jl)
[![coveralls](https://coveralls.io/repos/github/jipolanco/PencilFFTs.jl/badge.svg?branch=master)](https://coveralls.io/github/jipolanco/PencilFFTs.jl?branch=master)
[![Build Status](https://github.com/jipolanco/PencilFFTs.jl/workflows/CI/badge.svg)](https://github.com/jipolanco/PencilFFTs.jl/actions)
[![Coverage](https://codecov.io/gh/jipolanco/PencilFFTs.jl/branch/master/graph/badge.svg)](https://codecov.io/gh/jipolanco/PencilFFTs.jl)

Fast Fourier transforms of MPI-distributed Julia arrays.

Expand Down

0 comments on commit 5442f87

Please # to comment.