Skip to content

Commit 8b920f4

Browse files
authored
Merge pull request #404 from ComputationalCryoEM/issue_243
Add parallel coverage job to GitHub Actions.
2 parents 904846c + 59ed5d3 commit 8b920f4

File tree

4 files changed

+15
-26
lines changed

4 files changed

+15
-26
lines changed

.codecov.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
ignore:
2+
- "*/tests/*”

.github/workflows/workflow.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ jobs:
3434
include:
3535
# Re-include 3.6-stable with additional tox tasks.
3636
- python-version: 3.6
37-
# Note since the environments are fresh, we don't need invoke `clean`.
38-
pyenv: stable,docs,coveralls,report
37+
pyenv: stable,docs
38+
3939

4040
steps:
4141
- uses: actions/checkout@v1
@@ -49,6 +49,9 @@ jobs:
4949
pip install tox tox-gh-actions
5050
- name: Test with tox
5151
run: tox --skip-missing-interpreters false -e py${{ matrix.python-version }}-${{ matrix.pyenv }}
52+
- name: Upload Coverage to CodeCov
53+
uses: codecov/codecov-action@v1
54+
5255

5356
docs:
5457
if: github.ref == 'refs/heads/master'

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[![Azure Build Status](https://dev.azure.com/ComputationalCryoEM/Aspire-Python/_apis/build/status/ComputationalCryoEM.ASPIRE-Python?branchName=master)](https://dev.azure.com/ComputationalCryoEM/Aspire-Python/_build/latest?definitionId=3&branchName=master)
44
[![Github Actions Status](https://github.com/ComputationalCryoEM/ASPIRE-Python/actions/workflows/workflow.yml/badge.svg)](https://github.com/ComputationalCryoEM/ASPIRE-Python/actions/workflows/workflow.yml)
5-
[![Coverage Status](https://coveralls.io/repos/github/ComputationalCryoEM/ASPIRE-Python/badge.svg?branch=master)](https://coveralls.io/github/ComputationalCryoEM/ASPIRE-Python?branch=master)
5+
[![codecov](https://codecov.io/gh/ComputationalCryoEM/ASPIRE-Python/branch/master/graph/badge.svg?token=3XFC4VONX0)](https://codecov.io/gh/ComputationalCryoEM/ASPIRE-Python)
66

77
# ASPIRE - Algorithms for Single Particle Reconstruction - v0.6.3
88

tox.ini

Lines changed: 7 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ envlist =
55
check
66
docs
77
py{3.6,3.7,3.8,3.9}-{stable,dev}
8-
coveralls
9-
report
108
minversion = 3.8.0
119

1210
[testenv]
@@ -19,7 +17,8 @@ commands =
1917
python -V
2018
pip freeze
2119
python -c "import numpy; numpy.show_config()"
22-
pytest --cov=aspire {posargs}
20+
# --cov should generate `Coverage` data
21+
pytest --cov=aspire --cov-report=xml {posargs}
2322

2423
[testenv:py{3.6,3.7,3.8,3.9}-dev]
2524
whitelist_externals=
@@ -36,7 +35,8 @@ commands =
3635
python -V
3736
pip freeze
3837
python -c "import numpy; numpy.show_config()"
39-
pytest --cov=aspire {posargs}
38+
# --cov should generate `Coverage` data
39+
pytest --cov=aspire --cov-report=xml {posargs}
4040

4141
[testenv:docs]
4242
changedir = docs
@@ -76,25 +76,6 @@ commands =
7676
python setup.py sdist
7777
twine check dist/*.*
7878

79-
[testenv:coveralls]
80-
deps =
81-
coveralls
82-
skip_install = true
83-
commands =
84-
- coveralls []
85-
86-
[testenv:clean]
87-
commands = coverage erase
88-
skip_install = true
89-
deps = coverage
90-
91-
[testenv:report]
92-
deps = coverage
93-
skip_install = true
94-
commands =
95-
coverage report
96-
coverage html
97-
9879
[flake8]
9980
# The following for recomended for use with Black
10081
max-line-length = 88
@@ -126,3 +107,6 @@ python =
126107
3.7: py3.7
127108
3.8: py3.8
128109
3.9: py3.9
110+
111+
[coverage:run]
112+
relative_files = True

0 commit comments

Comments
 (0)