Skip to content

Commit

Permalink
Merge pull request #61 : GitHub workflow
Browse files Browse the repository at this point in the history
GitHub workflow
  • Loading branch information
tmichela authored Nov 16, 2020
2 parents b39e3d0 + 3171fcd commit a6bc6cf
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 16 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Tests

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
tests:

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

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}

- uses: actions/cache@v1
with:
path: ~/.cache/pip
key: ${{ runner.os }}-${{ matrix.python-version }}-pip-${{ hashFiles('**/setup.py') }}

- name: Install dependencies
run: |
python3 -m pip install --upgrade pip
python3 -m pip install ".[test]"
- name: Test with pytest
run: |
python3 -m pytest -v --cov=karabo_bridge
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
14 changes: 0 additions & 14 deletions .travis.yml

This file was deleted.

4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
European XFEL Karabo Bridge
===========================

.. image:: https://travis-ci.org/European-XFEL/karabo-bridge-py.svg?branch=master
:target: https://travis-ci.org/European-XFEL/karabo-bridge-py
.. image:: https://github.com/European-XFEL/karabo-bridge-py/workflows/Tests/badge.svg
:target: https://github.com/European-XFEL/karabo-bridge-py/actions?query=workflow%3ATests

.. image:: https://codecov.io/gh/European-XFEL/karabo-bridge-py/branch/master/graph/badge.svg
:target: https://codecov.io/gh/European-XFEL/karabo-bridge-py
Expand Down

0 comments on commit a6bc6cf

Please sign in to comment.