Skip to content

Commit

Permalink
Merge PR #134: Move to GitHub Actions for CI
Browse files Browse the repository at this point in the history
  • Loading branch information
smarr committed Apr 10, 2020
2 parents 81902da + 6bd2af6 commit b7f7258
Show file tree
Hide file tree
Showing 3 changed files with 63 additions and 52 deletions.
62 changes: 62 additions & 0 deletions .github/workflows/ci.yml
@@ -0,0 +1,62 @@
name: CI

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ '2.7', '3.7', '3.8-dev', 'pypy3' ]
yaml-parser: ['', 'ruamel']
include:
- python-version: 2.7
coverage: "--with-coverage --cover-package=rebench"
exclude:
- python-version: 2.7
yaml-parser: ruamel
- python-version: '3.8-dev'
yaml-parser: ruamel
- python-version: pypy3
yaml-parser: ruamel
name: Python ${{ matrix.python-version }} ${{ matrix.yaml-parser }}
steps:
- name: Checkout ReBench
uses: actions/checkout@v2

- name: Setup Python
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
architecture: x64

- name: Install nose
run: pip install nose

- name: Install ruamel.yaml
run: pip install ruamel.yaml
if: matrix.yaml-parser == 'ruamel'

- name: Install coverage and coveralls
run: pip install coverage coveralls
if: matrix.coverage

- name: Install ReBench dependencies
run: pip install .

- name: Run tests
run: |
nosetests ${{ matrix.coverage }}
(cd rebench && rebench -N ../rebench.conf e:TestRunner2)
- name: Install and run pylint
run: |
pip install pylint
pylint rebench
if: startsWith(matrix.python-version, 'pypy') == false

- name: Upload coverage results to Coveralls
run: coveralls
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
if: matrix.coverage
51 changes: 0 additions & 51 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
@@ -1,6 +1,6 @@
# ReBench: Execute and Document Benchmarks Reproducibly

[![Build Status](https://travis-ci.org/smarr/ReBench.svg?branch=master)](https://travis-ci.org/smarr/ReBench)
[![Build Status](https://github.com/smarr/ReBench/workflows/CI/badge.svg)](https://github.com/smarr/ReBench/actions)
[![Documentation](https://readthedocs.org/projects/rebench/badge/?version=latest)](https://rebench.readthedocs.io/)
[![Codacy Quality](https://api.codacy.com/project/badge/Grade/2f7210b65b414100be03f64fe6702d66)](https://www.codacy.com/app/smarr/ReBench)
[![Coverage](https://coveralls.io/repos/github/smarr/ReBench/badge.svg?branch=master)](https://coveralls.io/github/smarr/ReBench?branch=master)
Expand Down

0 comments on commit b7f7258

Please sign in to comment.