Skip to content

Commit

Permalink
Merge pull request #28 from DeepRank/github_actions
Browse files Browse the repository at this point in the history
Move from travis to github actions
  • Loading branch information
CunliangGeng committed Dec 17, 2020
2 parents a6e4f63 + 6c6eb12 commit c153677
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 42 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/build_test.yml
@@ -0,0 +1,39 @@
name: Build

on: [push, pull_request]

jobs:
build_test:

runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.7, 3.8, 3.9]

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 openmpi
run: |
sudo apt-get install libopenmpi-dev openmpi-bin
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e .[test]
- name: Test with pytest
run: |
cd test/
pytest --cov=iScore --cov-report xml:coverage.xml
mv coverage.xml .coverage ../test_mpi
cd ../test_mpi
mpiexec -n 1 pytest --cov=iScore --cov-report xml:coverage.xml --cov-append
mv coverage.xml .coverage ../
cd ../
- name: Coveralls
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
coveralls
41 changes: 0 additions & 41 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -5,7 +5,7 @@
[![PyPI](https://img.shields.io/pypi/v/iscore)](https://pypi.org/project/iscore/)
[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.2630566.svg)](https://doi.org/10.5281/zenodo.2630566)
[![RSD](https://img.shields.io/badge/RSD-iScore-red)](https://research-software.nl/software/iscore)
[![Travis](https://secure.travis-ci.org/DeepRank/iScore.svg?branch=master)](https://travis-ci.org/DeepRank/iScore)
![Build](https://github.com/DeepRank/iScore/workflows/Build/badge.svg)
[![Coverage Status](https://coveralls.io/repos/github/DeepRank/iScore/badge.svg?branch=master)](https://coveralls.io/github/DeepRank/iScore?branch=master)
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/9491c221796e49c0a120ada9aed5fe42)](https://www.codacy.com/app/NicoRenaud/iScore?utm_source=github.com&utm_medium=referral&utm_content=DeepRank/iScore&utm_campaign=Badge_Grade)
[![Documentation Status](https://readthedocs.org/projects/iscoredoc/badge/?version=latest)](http://iscoredoc.readthedocs.io/?badge=latest)
Expand Down

0 comments on commit c153677

Please sign in to comment.