File tree Expand file tree Collapse file tree 4 files changed +13
-2
lines changed Expand file tree Collapse file tree 4 files changed +13
-2
lines changed Original file line number Diff line number Diff line change 58
58
- name : Install dependencies
59
59
run : |
60
60
python -m pip install --upgrade pip
61
+ pip install coveralls
61
62
pip install -r local-requirements.txt
62
63
pip install .
63
64
- name : Build driver
@@ -70,10 +71,14 @@ jobs:
70
71
if : ${{ matrix.os == 'windows-latest' }}
71
72
# pytest-xdist does not exit on Windows
72
73
# 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
74
75
- name : Test
75
76
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 }}
77
82
- name : Upload pytest test results
78
83
uses : actions/upload-artifact@v1
79
84
with :
Original file line number Diff line number Diff line change @@ -14,3 +14,5 @@ htmlcov/
14
14
.vscode /
15
15
.eggs
16
16
_repo_version.py
17
+ coverage.xml
18
+ junit /
Original file line number Diff line number Diff line change
1
+ # 🎭 Playwright for Python
2
+
1
3
[ ![ 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 )
2
5
3
6
##### [ Docs] ( https://github.com/microsoft/playwright/blob/master/docs/README.md ) | [ API reference] ( https://github.com/microsoft/playwright/blob/master/docs/api.md )
4
7
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ markers =
4
4
only_browser
5
5
skip_platform
6
6
only_platform
7
+ junit_family =xunit2
7
8
[mypy]
8
9
ignore_missing_imports = True
9
10
python_version = 3.7
You can’t perform that action at this time.
0 commit comments