Skip to content
This repository was archived by the owner on Nov 10, 2022. It is now read-only.

Commit 2551989

Browse files
authored
Fix continuous integration (#102)
* Building with 3.5 fails, only keep 3.8 * Switch to Coveralls Github Action * Try different GH action * Fix workflow syntax * Update README to GH Actions CI
1 parent e512e8e commit 2551989

File tree

3 files changed

+22
-7
lines changed

3 files changed

+22
-7
lines changed

.coveragerc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[run]
2+
relative_files = True

.github/workflows/tests.yml

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
name: Python tests
22

3-
on: [push, pull_request]
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
48

59
jobs:
610
build:
@@ -9,7 +13,7 @@ jobs:
913

1014
strategy:
1115
matrix:
12-
python: [ 3.5, 3.8 ]
16+
python: [ 3.8 ]
1317

1418
steps:
1519
- uses: actions/checkout@v2
@@ -27,8 +31,16 @@ jobs:
2731
run: |
2832
coverage run --omit=/home/travis/virtualenv/* -m unittest tests
2933
- name: Coveralls
30-
run: coveralls --finish
31-
env:
32-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
33-
34+
uses: AndreMiras/coveralls-python-action@develop
35+
with:
36+
parallel: true
37+
flag-name: Unit Test
3438

39+
coveralls_finish:
40+
needs: build
41+
runs-on: ubuntu-latest
42+
steps:
43+
- name: Coveralls Finished
44+
uses: AndreMiras/coveralls-python-action@develop
45+
with:
46+
parallel-finished: true

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
Wikibase reconciliation interface for OpenRefine
22
================================================
3-
[![Build Status](https://travis-ci.org/wetneb/openrefine-wikibase.svg?branch=master)](https://travis-ci.org/wetneb/openrefine-wikibase) [![Documentation Status](https://readthedocs.org/projects/openrefine-wikibase/badge/?version=latest)](https://openrefine-wikibase.readthedocs.io/en/latest/?badge=latest) [![Coverage Status](https://coveralls.io/repos/github/wetneb/openrefine-wikidata/badge.svg?branch=master)](https://coveralls.io/github/wetneb/openrefine-wikidata?branch=master)
3+
i[![Python tests](https://github.com/wetneb/openrefine-wikibase/actions/workflows/tests.yml/badge.svg)](https://github.com/wetneb/openrefine-wikibase/actions/workflows/tests.yml) [![Documentation Status](https://readthedocs.org/projects/openrefine-wikibase/badge/?version=latest)](https://openrefine-wikibase.readthedocs.io/en/latest/?badge=latest) [![Coverage Status](https://coveralls.io/repos/github/wetneb/openrefine-wikidata/badge.svg?branch=master)](https://coveralls.io/github/wetneb/openrefine-wikidata?branch=master)
4+
45

56
An instance of this endpoint for Wikidata can be found at:
67
https://wikidata.reconci.link/en/api

0 commit comments

Comments
 (0)