Skip to content

Commit 8794c00

Browse files
committed
use GitHub Actions for tests
1 parent faf0830 commit 8794c00

File tree

6 files changed

+35
-43
lines changed

6 files changed

+35
-43
lines changed
File renamed without changes.

.github/workflows/docs.yml renamed to .github/workflows/docbuild.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
name: docs
1+
name: docbuild
22

33
on:
44
push:
55
branches: 'master'
66
pull_request:
77

88
jobs:
9-
docs:
9+
main:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: checkout
@@ -24,4 +24,4 @@ jobs:
2424
- name: docs-build
2525
env:
2626
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # For authentication with GitHub Actions token
27-
run: .github/workflows/docs.sh
27+
run: .github/workflows/docbuild.sh

.github/workflows/runtests.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: runtests
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
main:
7+
runs-on: ${{ matrix.os }}
8+
continue-on-error: ${{ matrix.experimental == 'nightly' }}
9+
timeout-minutes: 20
10+
strategy:
11+
matrix:
12+
julia-version: ['1.3', '1.4','nightly']
13+
os: [ubuntu-latest]
14+
JULIA_FFTW_PROVIDER: ['MKL'] # would be nice to get FFTW working too
15+
fail-fast: false
16+
env:
17+
PYTHON: python3
18+
19+
steps:
20+
- uses: actions/[email protected]
21+
- uses: julia-actions/setup-julia@latest
22+
with:
23+
version: ${{ matrix.julia-version }}
24+
- run: >
25+
sudo apt-get install --no-install-recommends gfortran python3-setuptools python3-wheel
26+
&& pip3 install camb
27+
- uses: julia-actions/julia-runtest@master
28+
env:
29+
JULIA_FFTW_PROVIDER: ${{ matrix.JULIA_FFTW_PROVIDER }}

.travis.yml

Lines changed: 0 additions & 37 deletions
This file was deleted.

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,5 +75,5 @@ Setfield = "0.6.0"
7575
StaticArrays = "0.12.1"
7676
StatsBase = "0.32.0"
7777
Strided = "0.3.3"
78-
Zygote = "0.4.14 - 0.4.15"
78+
Zygote = "=0.4.14, =0.4.15"
7979
julia = "1.3"

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# CMBLensing.jl
22

3-
4-
[![](https://img.shields.io/badge/source-github-blue)](https://github.com/marius311/CMBLensing.jl) [![](https://img.shields.io/badge/docs-stable-blue.svg)](https://cosmicmar.com/CMBLensing.jl/stable) [![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/marius311/CMBLensing.jl/gh-pages?urlpath=lab) [![Build Status](https://travis-ci.org/marius311/CMBLensing.jl.svg?branch=master)](https://travis-ci.org/marius311/CMBLensing.jl)
3+
[![](https://img.shields.io/badge/source-github-blue)](https://github.com/marius311/CMBLensing.jl) [![](https://img.shields.io/badge/docs-stable-blue.svg)](https://cosmicmar.com/CMBLensing.jl/stable) [![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/marius311/CMBLensing.jl/gh-pages?urlpath=lab)
4+
[![](https://github.com/marius311/CMBLensing.jl/workflows/runtests/badge.svg)](https://github.com/marius311/CMBLensing.jl/actions?query=workflow%3Aruntests) [![](https://github.com/marius311/CMBLensing.jl/workflows/docbuild/badge.svg)](https://github.com/marius311/CMBLensing.jl/actions?query=workflow%3Adocbuild)
55

66
CMBLensing.jl is a next-generation tool for analysis of the lensed Cosmic Microwave Background. It is written in [Julia](https://julialang.org/) and transparently callable from Python.
77

0 commit comments

Comments
 (0)