Skip to content

Commit 9d127d8

Browse files
authored
devops: added coveralls as coverge provider (#60)
1 parent a1e3d58 commit 9d127d8

File tree

4 files changed

+13
-2
lines changed

4 files changed

+13
-2
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ jobs:
5858
- name: Install dependencies
5959
run: |
6060
python -m pip install --upgrade pip
61+
pip install coveralls
6162
pip install -r local-requirements.txt
6263
pip install .
6364
- name: Build driver
@@ -70,10 +71,14 @@ jobs:
7071
if: ${{ matrix.os == 'windows-latest' }}
7172
# pytest-xdist does not exit on Windows
7273
# https://github.com/pytest-dev/pytest-xdist/issues/60
73-
run: pytest -vv --browser=${{ matrix.browser }} --junitxml=junit/test-results-${{ matrix.os }}-${{ matrix.python-version }}-${{ matrix.browser }}.xml
74+
run: pytest -vv --browser=${{ matrix.browser }} --junitxml=junit/test-results-${{ matrix.os }}-${{ matrix.python-version }}-${{ matrix.browser }}.xml --cov=playwright --cov-report xml
7475
- name: Test
7576
if: ${{ matrix.os != 'windows-latest' }}
76-
run: pytest -vv --browser=${{ matrix.browser }} -n auto --junitxml=junit/test-results-${{ matrix.os }}-${{ matrix.python-version }}-${{ matrix.browser }}.xml
77+
run: pytest -vv --browser=${{ matrix.browser }} -n auto --junitxml=junit/test-results-${{ matrix.os }}-${{ matrix.python-version }}-${{ matrix.browser }}.xml --cov=playwright --cov-report xml
78+
- name: Coveralls
79+
run: coveralls
80+
env:
81+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7782
- name: Upload pytest test results
7883
uses: actions/upload-artifact@v1
7984
with:

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,5 @@ htmlcov/
1414
.vscode/
1515
.eggs
1616
_repo_version.py
17+
coverage.xml
18+
junit/

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1+
# 🎭 Playwright for Python
2+
13
[![PyPI version](https://badge.fury.io/py/playwright.svg)](https://pypi.python.org/pypi/playwright/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4182.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)
4+
[![Coverage Status](https://coveralls.io/repos/github/microsoft/playwright-python/badge.svg?branch=master)](https://coveralls.io/github/microsoft/playwright-python?branch=master)
25

36
##### [Docs](https://github.com/microsoft/playwright/blob/master/docs/README.md) | [API reference](https://github.com/microsoft/playwright/blob/master/docs/api.md)
47

setup.cfg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ markers =
44
only_browser
55
skip_platform
66
only_platform
7+
junit_family=xunit2
78
[mypy]
89
ignore_missing_imports = True
910
python_version = 3.7

0 commit comments

Comments
 (0)