Skip to content

Commit 5bcc2b4

Browse files
committed
Use codecov instead of failing coveralls
- only run with coverage for Python 3.8
1 parent 669af23 commit 5bcc2b4

File tree

4 files changed

+18
-12
lines changed

4 files changed

+18
-12
lines changed

.github/workflows/pythontests.yml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
- name: Check syntax and style
3535
run: python -m flake8 .
3636

37-
build:
37+
test:
3838
runs-on: ${{ matrix.os }}
3939
strategy:
4040
fail-fast: false
@@ -46,6 +46,8 @@ jobs:
4646
python-version: pypy2
4747
- os: windows-latest
4848
python-version: pypy3
49+
env:
50+
OS: ${{ matrix.os }}
4951
steps:
5052
- uses: actions/checkout@v2
5153
- name: Set up Python ${{ matrix.python-version }}
@@ -65,13 +67,14 @@ jobs:
6567
- name: Test environment setup
6668
run: |
6769
python -m pip install wheel
68-
python -m pip install pytest coveralls tox
70+
python -m pip install pytest pytest-cov tox
6971
- name: Run tests
7072
run: |
7173
TOX_PYTHON_VERSION=$(if [ ${{ matrix.python-version }} = pypy2 ]; then echo "pypy2"; elif [ ${{ matrix.python-version }} = pypy3 ]; then echo "pypy3"; else echo py${{ matrix.python-version }} | tr -d .; fi)
72-
tox -e $(tox -l | grep $TOX_PYTHON_VERSION | paste -sd "," -)
73-
# - name: Get coverage results
74-
# if: ${{ success() && matrix.python-version == 3.8 }}
75-
# env:
76-
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
77-
# run: coveralls
74+
COV_CMD=$(if [ ${{ matrix.python-version }} = 3.8 ]; then echo "--cov=./pytest_order/ --cov-report=xml"; else echo ; fi) tox -e $(tox -l | grep $TOX_PYTHON_VERSION | paste -sd "," -)
75+
- name: Upload coverage to Codecov
76+
uses: codecov/codecov-action@v1
77+
if: ${{ success() && matrix.python-version == 3.8 }}
78+
with:
79+
env_vars: OS
80+
name: codecov-pytest-order

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
## Unreleased
44

5+
### Infrastructure
6+
- use codecov instead of coveralls, that is failing
7+
58
## [Version 0.9.3](https://pypi.org/project/pytest-order/0.9.3/) (2021-01-14)
69
Bugfix release.
710

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
_pytest-order_ - a pytest plugin to order test execution
22
========================================================
33

4-
[![PyPI version](https://badge.fury.io/py/pytest-order.svg)](https://pypi.org/project/pytest-order) ![Testsuite](https://github.com/mrbean-bremen/pytest-order/workflows/Testsuite/badge.svg) ![DocBuild](https://github.com/mrbean-bremen/pytest-order/workflows/DocBuild/badge.svg) [![Coverage Status](https://img.shields.io/coveralls/github/mrbean-bremen/pytest-order)](https://coveralls.io/github/mrbean-bremen/pytest-order) [![Python version](https://img.shields.io/pypi/pyversions/pytest-order.svg)](https://pypi.org/project/pytest-order)
4+
[![PyPI version](https://badge.fury.io/py/pytest-order.svg)](https://pypi.org/project/pytest-order) ![Testsuite](https://github.com/mrbean-bremen/pytest-order/workflows/Testsuite/badge.svg) ![DocBuild](https://github.com/mrbean-bremen/pytest-order/workflows/DocBuild/badge.svg) [![codecov](https://codecov.io/gh/mrbean-bremen/pytest-order/branch/master/graph/badge)](https://codecov.io/gh/mrbean-bremen/pytest-order) [![Python version](https://img.shields.io/pypi/pyversions/pytest-order.svg)](https://pypi.org/project/pytest-order)
55

66
`pytest-order` is a pytest plugin that allows you to customize the order in which
77
your tests are run. It uses the marker `order` that defines when a specific

tox.ini

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,6 @@ deps =
3232
pytest{38,39,310,40,41,42,43,44,45,46,50,51,52,53,54,60,61}: pytest-dependency
3333
pytest{37,38,39,310,40,41,42,43,44,45,46,50,51,52,53,54,60,61}: pytest-mock
3434

35-
commands =
36-
coverage run --source=pytest_order -m pytest tests
37-
coverage report -m --fail-under=95
35+
passenv = *
36+
37+
commands = python -m pytest {env:COV_CMD} tests

0 commit comments

Comments
 (0)