Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
140 commits
Select commit Hold shift + click to select a range
1a4bdf7
chore: roll to Playwright v1.10.0 (#591)
kumaraditya303 Mar 24, 2021
140ad1b
fix: remove pre-release docs from README (#600)
kumaraditya303 Mar 27, 2021
ea66054
feat(roll): toll to the ToT 1617207797000 (#606)
pavelfeldman Mar 31, 2021
0c70108
feat(roll): roll to 1617212285000 aka video (#609)
pavelfeldman Apr 3, 2021
4ac3256
fix: env param in BrowserType.launch doesn't serialize properly to No…
nmashewske Apr 5, 2021
1d39a2e
feat(roll): roll to 1617404897000 aka opener & tracing (#611)
pavelfeldman Apr 5, 2021
60a3129
build: remove redundant build files (#503)
kumaraditya303 Apr 16, 2021
6e062b1
docs(readme): updated outdated table of contents (#618)
kumaraditya303 Apr 16, 2021
463c6df
chore: simplified tests (#558)
kumaraditya303 Apr 16, 2021
57bebfd
feat(roll): roll to 1618513089000 (#622)
dgozman Apr 16, 2021
c1a52c2
fix: https://github.com/microsoft/playwright/issues/6223 (#628)
kumaraditya303 Apr 19, 2021
74b9a8f
test: re-renable CORS tests (#625)
mxschmitt Apr 19, 2021
9dee7b3
fix(connection): handle canceled tasks correctly (#624)
mxschmitt Apr 19, 2021
965afa4
feat: Installation from github (#537)
kumaraditya303 Apr 19, 2021
1df5a54
fix: fix greenlet version for compatibility with pypy (#621)
kumaraditya303 Apr 19, 2021
1894c6b
test: cleanup tests by removing print statements (#633)
mxschmitt Apr 20, 2021
3403e4c
chore: fix update api script exit on error (#634)
mxschmitt Apr 20, 2021
ea7857e
devops: upload test logs on failure (#636)
mxschmitt Apr 21, 2021
ef1f86a
docs: fix typo in the README (#641)
Marketionist Apr 23, 2021
734e425
chore: fixed mypy on impl files (#643)
mxschmitt Apr 23, 2021
9991b54
chore(build): don't rely on auditwheel package (#645)
kumaraditya303 Apr 23, 2021
0d30599
test: unskip tests (#644)
mxschmitt Apr 23, 2021
9475cff
feat: added BrowserType.connect_over_cdp (#640)
mxschmitt Apr 23, 2021
050b889
chore: remove stack data from before WaitForEventInfo (#639)
kumaraditya303 Apr 23, 2021
9d79662
feat: added BrowserType.connect (#630)
mxschmitt Apr 24, 2021
890a833
chore: fix setuptools include for conda package manager (#649)
kumaraditya303 Apr 27, 2021
027c1fb
chore: added headers param for BrowserType.connect (#648)
kumaraditya303 Apr 28, 2021
5d976dc
feat(pageerror): added Error.name property support (#652)
mxschmitt Apr 29, 2021
82885a1
fix(transport): handle connection error correctly (#650) (#651)
x0day May 4, 2021
c35ec2e
feat(roll): roll Playwright to 1.11.0-next-1620085974000 (#632)
kumaraditya303 May 4, 2021
bd7eff6
fix: fix broken deps for PEP 517 (#669)
kumaraditya303 May 7, 2021
dee8d6f
feat(roll): roll Playwright to 1.11.0-1620331022000 (#664)
kumaraditya303 May 7, 2021
53cf799
fix: restrict installation to Ubuntu 18.04 (#665)
kumaraditya303 May 7, 2021
034c221
Revert "fix(transport): handle connection error correctly (#650) (#65…
pavelfeldman May 7, 2021
4c201bb
fix(transport): handle connection error correctly (#672)
mxschmitt May 7, 2021
670edff
test: unflake test_timeout_waiting_for_stable_position test (#671)
mxschmitt May 7, 2021
e1e354c
docs: remove dollar sign prefix in code snippets
mxschmitt May 11, 2021
5fb729b
feat: added BrowserType.connect slow_mo param (#674)
kumaraditya303 May 11, 2021
2c5687a
feat: conda support (#657)
kumaraditya303 May 11, 2021
1986156
Revert "fix: fix greenlet version for compatibility with pypy (#621)"
mxschmitt May 11, 2021
c68b031
docs(conda): added docs for usage with conda (#678)
kumaraditya303 May 11, 2021
78f4247
Revert "fix: restrict installation to Ubuntu 18.04 (#665)"
mxschmitt May 12, 2021
6854c40
fix(chromium): handle backgroundPages() onClose (#685)
mxschmitt May 12, 2021
1066887
docs(readme): fixed outdated method name (#692)
isaa-ctaylor May 13, 2021
a60b20f
chore: serialize None into null instead of undefined (#694)
mxschmitt May 16, 2021
a69de3d
chore: force lf line ending (#697)
kumaraditya303 May 17, 2021
cfc1030
docs: add note about time.sleep (#698)
mxschmitt May 18, 2021
50892f6
test: un-flake test browsertype connect slow mo test (#709)
mxschmitt May 21, 2021
9534c38
feat(roll): roll to Playwright 1.12.0-next-1621456974000 (#682)
kumaraditya303 May 21, 2021
835cdce
test: add test for extension testing (#695)
mxschmitt May 21, 2021
b5c9f8d
feat(roll): roll Playwright to 1.12.0-next-1621639045000 (#718)
mxschmitt May 24, 2021
633d881
tests: cleanup tests (#717)
mxschmitt May 24, 2021
1dc7433
tests: fix flaky tests iteration 2 (#719)
mxschmitt May 24, 2021
f2d100c
fix: compute payload mime type on server (#721)
mxschmitt May 25, 2021
f39f058
feat(roll): roll Playwright to 1.12.0-next-1621812078000 (#715)
kumaraditya303 May 26, 2021
734d87b
chore: add bug issue template (#714)
kumaraditya303 May 26, 2021
cf985f5
test: terminate windows subprocess using kill in tests (#711)
kumaraditya303 May 26, 2021
2817a80
fix(windows): hide console window when Pythonw is used (#729)
artyl May 31, 2021
f4ec7c6
feat(roll): roll Playwright to 1.12.0-next-1622480418000 (#728)
mxschmitt Jun 1, 2021
06a62bb
chore: roll driver, fix real bugs (#740)
pavelfeldman Jun 4, 2021
f720f19
feat(roll): roll Playwright to 1.12.0-next-1623050602000 (#745)
mxschmitt Jun 7, 2021
21b7d1c
chore: better types for funcs (#743)
kumaraditya303 Jun 7, 2021
608bbb2
chore: use `asyncio.get_running_loop` instead of `asyncio.get_event_l…
kumaraditya303 Jun 7, 2021
7b920ea
feat(roll): roll Playwright to 1.12.0-1623185968000 (#747)
mxschmitt Jun 8, 2021
91755db
fix(websocket): error handling (#756)
mxschmitt Jun 15, 2021
27fc86d
docs: update README to refer to the documentation site (#761)
pavelfeldman Jun 17, 2021
e05ab07
docs: fixed wrong links (#762)
mxschmitt Jun 17, 2021
61b1a03
chore: remove redundant code (#759)
kumaraditya303 Jun 23, 2021
202d688
chore: show warnings in CI (#769)
kumaraditya303 Jun 23, 2021
201c721
test: unflake tests (#770)
kumaraditya303 Jun 23, 2021
2ca17ac
fix(cdp): fix cdp session, add tests (#777)
pavelfeldman Jun 25, 2021
dae661d
feat: context managers (#778)
kumaraditya303 Jun 27, 2021
aa0b467
feat: support dynamic browser name (#748)
kumaraditya303 Jun 28, 2021
9ec64c6
test: unflake test_should_emit_frame_events test (#781)
mxschmitt Jun 28, 2021
39a9cb1
feat(roll): roll Playwright to 1.13.0-next-1625158334000 (#784)
mxschmitt Jul 1, 2021
f9abeae
fix: run blocking call in threadpool (#780)
kumaraditya303 Jul 2, 2021
1f02046
chore: sync with upstream GitHub issue templates (#793)
mxschmitt Jul 7, 2021
42e1283
fix(cli): forward CLI exit code over to the parent (#801)
mxschmitt Jul 12, 2021
85f3177
feat(roll): roll Playwright to 1.13.0-next-1625812834000 (#799)
mxschmitt Jul 12, 2021
7640f90
fix: reverse route handlers order (#804)
mxschmitt Jul 14, 2021
809727d
feat(roll): roll Playwright to 1.13.0-next-1626254028000 (#805)
mxschmitt Jul 14, 2021
673eed8
fix: improve typing for SyncBase and AsyncBase (#790)
kumaraditya303 Jul 15, 2021
5ffa2ef
feat(roll): roll Playwright to 1.13.0-1626733671000 (#814)
mxschmitt Jul 20, 2021
bc7a802
feat: added hooks for pyinstaller (#812)
kumaraditya303 Jul 21, 2021
d59301b
fix: migrate to new waitForEventInfo handling (#824)
mxschmitt Jul 28, 2021
70d4b36
test: do not evaluate on background_page
mxschmitt Jul 28, 2021
1882195
chore: follow up for d59301b for waitForEventInfo handling
mxschmitt Jul 29, 2021
bb9b09f
chore: support client side event logging (#827)
mxschmitt Jul 29, 2021
f57cc82
chore: fix mypy linting for websockets (#828)
kumaraditya303 Jul 29, 2021
a2347a7
feat(roll): roll Playwright 1.14.0-next-1627933604000 (#832)
mxschmitt Aug 5, 2021
12ba09d
feat(roll): roll Playwright 1.14.0-next-1628399336000 (#839)
mxschmitt Aug 8, 2021
6b2898d
test: unskip tests (#840)
mxschmitt Aug 8, 2021
c52f0f2
chore: roll to 1.14 branch tot (#845)
pavelfeldman Aug 12, 2021
7de9061
test: improve ref count test (#846)
kumaraditya303 Aug 16, 2021
c4a38ab
feat(roll): roll Playwright 1.15.0-next-1629385562000 (#854)
mxschmitt Aug 19, 2021
0fc6a62
docs: add rolling.md (#859)
aslushnikov Aug 23, 2021
1c86a35
chore: delete no longer needed files
mxschmitt Aug 23, 2021
cb54099
chore: bump dev dependencies (#865)
mxschmitt Aug 23, 2021
646af02
fix: query_selector strict mode (#870)
mxschmitt Aug 26, 2021
5981155
chore(protocol): implement client side hello (#836)
mxschmitt Aug 26, 2021
ab7502c
feat(roll): roll Playwright 1.15.0-next-1630006646000 (#871)
mxschmitt Aug 27, 2021
6a85035
chore: bump deps (#878)
kumaraditya303 Aug 31, 2021
79e77e9
chore: roll to 1.15.0-next-1630342926000 (#879)
kumaraditya303 Sep 1, 2021
da1bd03
chore: annotate sync tests with types (#882)
mxschmitt Sep 1, 2021
f422faf
test: unflake test_should_set_bodysize_to_0
mxschmitt Sep 1, 2021
651baeb
build(deps): bump pillow from 8.3.1 to 8.3.2 (#892)
dependabot[bot] Sep 8, 2021
89b957b
feat(roll): roll Playwright 1.15.0-next-1631091227000 (#887)
mxschmitt Sep 10, 2021
6cb70f3
chore: test on Python 3.10 (#847)
kumaraditya303 Sep 10, 2021
b010d3e
fix: make sure page.goto navigates away from pages with beforeunload …
mxschmitt Sep 13, 2021
9a59907
chore: remove special handling for `__getitem__` (#894)
kumaraditya303 Sep 14, 2021
5e52bcf
feat: add docs for events in the generator (#897)
kumaraditya303 Sep 15, 2021
d12962b
test: re-enable type checking on sync tests (#906)
mxschmitt Sep 15, 2021
0c26cbf
feat(roll): roll Playwright 1.15.0-next-1631655106000 (#905)
mxschmitt Sep 15, 2021
42bd3f0
test: mark upstream flaky tests as flaky
mxschmitt Sep 15, 2021
f6e5f3d
feat(roll): roll Playwright 1.15.0-1631797286000 (#910)
mxschmitt Sep 16, 2021
34fbf6b
feat(roll): roll Playwright 1.16.0-next-1631799458000 (#911)
mxschmitt Sep 16, 2021
2bd77c7
chore: bump dev deps (#918)
kumaraditya303 Sep 24, 2021
a385b00
feat(roll): roll Playwright 1.16.0-next-1632717011000 (#919)
mxschmitt Sep 27, 2021
b7eb7d8
chore: roll to Playwright 1.16.0-next-1632960932000 (#925)
kumaraditya303 Sep 30, 2021
f6ef8a6
fix: propagate dispatch error to current task (#917)
kumaraditya303 Oct 1, 2021
287d820
chore: roll to Playwright 1.16.0-next-1633339886000 (#932)
mxschmitt Oct 4, 2021
75931ee
feat(roll): roll Playwright 1.16.0-next-1634054506000 (#944)
mxschmitt Oct 12, 2021
ae12e30
chore: prepare connection refactor for jsonpipe (#949)
kumaraditya303 Oct 13, 2021
d66d27f
devops: add Python 3.10 bots (#948)
kumaraditya303 Oct 18, 2021
6ecdf0e
fix(har): omit content when False is passed (#959)
mxschmitt Oct 18, 2021
a0a6536
feat(roll): roll Playwright 1.16.0-next-1634703014000 (#970)
mxschmitt Oct 20, 2021
0be6efe
chore: run pyright on CI as type checker (#942)
kumaraditya303 Oct 25, 2021
6bc5afc
chore: cleanup route handling (#973)
mxschmitt Oct 27, 2021
29b5a13
chore: drop win32 drivers (#993)
kumaraditya303 Oct 29, 2021
0a3d7f0
chore: allow custom PLAYWRIGHT_BROWSERS_PATH with Pyinstaller (#1002)
mxschmitt Nov 2, 2021
9b5e858
feat(roll): roll Playwright 1.17.0-next-1635811939000 (#1003)
mxschmitt Nov 4, 2021
cb24d15
chore: enable pyright on sync tests (#1015)
kumaraditya303 Nov 9, 2021
bc23047
test: have server.set_auth accepting strings (#1016)
mxschmitt Nov 9, 2021
2152eaa
feat(roll): roll Playwright 1.17.0-next-1636463074000 (#1013)
mxschmitt Nov 9, 2021
82e3931
chore: add conda Python 3.10 (#1006)
kumaraditya303 Nov 10, 2021
b5ef624
test: add tracing related tests (#1020)
mxschmitt Nov 10, 2021
cd14696
feat(roll): roll Playwright 1.18.0-next-1636539685000 (#1021)
mxschmitt Nov 10, 2021
241e06a
chore: add repr for FrameLocator (#1018)
kumaraditya303 Nov 11, 2021
6e55a83
chore: use math.inf in route handling as max value (#986)
kumaraditya303 Nov 11, 2021
5b7bb19
feat: arm64 support (#1022)
kumaraditya303 Nov 11, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .dockerignore

This file was deleted.

4 changes: 4 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# text files must be lf for golden file tests to work
*.txt eol=lf
*.json eol=lf
*.py eol=lf
*.yml eol=lf
*.yaml eol=lf
*.md eol=lf
69 changes: 69 additions & 0 deletions .github/ISSUE_TEMPLATE/bug.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
name: Bug Report
description: Something doesn't work like it should? Tell us!
title: "[Bug]: "
labels: []
body:
- type: markdown
attributes:
value: |
Thanks for taking the time to fill out this bug report!
- type: input
id: version
attributes:
label: Playwright version
description: Which version of of Playwright are you using?
placeholder: ex. 1.12.0
validations:
required: true
- type: dropdown
id: operating-system
attributes:
label: Operating system
multiple: true
description: What operating system are you running Playwright on?
options:
- Windows
- MacOS
- Linux
- type: dropdown
id: browsers
attributes:
label: What browsers are you seeing the problem on?
multiple: true
options:
- Chromium
- Firefox
- WebKit
- type: textarea
id: other-information
attributes:
label: Other information
description: ex. Python version, Linux distribution etc.
- type: textarea
id: what-happened
attributes:
label: What happened? / Describe the bug
description: Also tell us, what did you expect to happen?
placeholder: Tell us what you see!
validations:
required: true
- type: textarea
id: reproducible
attributes:
label: Code snippet to reproduce your bug
description: Help us help you! Put down a short code snippet that illustrates your bug and that we can run and debug locally. This will be automatically formatted into code, so no need for backticks.
render: shell
placeholder: |
from playwright.sync_api import sync_playwright

with sync_playwright() as p:
browser = p.chromium.launch()
page = browser.new_page()
# ...
browser.close()
- type: textarea
id: logs
attributes:
label: Relevant log output
description: Please copy and paste any relevant log output like [Playwright debug logs](https://playwright.dev/docs/debug#verbose-api-logs). This will be automatically formatted into code, so no need for backticks.
render: shell
4 changes: 4 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
contact_links:
- name: Join our Slack community
url: https://aka.ms/playwright-slack
about: Ask questions and discuss with other community members
18 changes: 18 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Feature request
description: Request new features to be added
title: "[Feature]: "
labels: []
body:
- type: markdown
attributes:
value: |
Thanks for taking the time to fill out this feature request!
- type: textarea
id: what-happened
attributes:
label: Feature request
description: |
Let us know what functionality you'd like to see in Playwright and what is your use case.
Do you think others might benefit from this as well?
validations:
required: true
11 changes: 11 additions & 0 deletions .github/ISSUE_TEMPLATE/question.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: I have a question
description: Feel free to ask us your questions!
title: "[Question]: "
labels: []
body:
- type: textarea
id: question
attributes:
label: Your question
validations:
required: true
143 changes: 79 additions & 64 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,32 +19,27 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install dependencies
python-version: "3.10"
- name: Install dependencies & browsers
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade pip wheel
pip install -r local-requirements.txt
pip install -e .
python setup.py bdist_wheel
python -m playwright install-deps
- name: Install browsers
run: python -m playwright install
python -m playwright install --with-deps
- name: Lint
uses: pre-commit/action@v2.0.0
uses: pre-commit/action@v2.0.3
- name: Generate APIs
run: bash scripts/update_api.sh
- name: Verify API is up to date
run: |
if [[ -n $(git status -s) ]]; then
echo "ERROR: generated code differ from the current sources:"
git diff
exit 1
fi
- name: Run reference checks
run: bash buildbots/test-reference-count.sh
- name: Verify generated API is up to date
run: git diff --exit-code

build:
name: Build
timeout-minutes: 30
env:
DEBUG: pw:*
DEBUG_FILE: pw-log.txt
strategy:
fail-fast: false
matrix:
Expand All @@ -70,40 +65,64 @@ jobs:
- os: macos-11.0
python-version: 3.9
browser: webkit
- os: ubuntu-latest
python-version: '3.10'
browser: chromium
- os: windows-latest
python-version: '3.10'
browser: chromium
- os: macos-latest
python-version: '3.10'
browser: chromium
- os: macos-11.0
python-version: '3.10'
browser: chromium
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
- name: Install dependencies & browsers
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade pip wheel
pip install -r local-requirements.txt
pip install -e .
python setup.py bdist_wheel
python -m playwright install-deps
- name: Install browsers
run: python -m playwright install
python -m playwright install --with-deps
- name: Common Tests
run: pytest -vv tests/common --browser=${{ matrix.browser }} --timeout 90
run: pytest tests/common --browser=${{ matrix.browser }} --timeout 90
- name: Test Reference count
run: pytest tests/test_reference_count_async.py --browser=${{ matrix.browser }}
- name: Test Wheel Installation
run: pytest tests/test_installation.py --browser=${{ matrix.browser }}
- name: Test Generation Scripts
run: pytest tests/test_generation_scripts.py --browser=${{ matrix.browser }}
- name: Test Sync API
if: matrix.os != 'ubuntu-latest'
run: pytest -vv tests/sync --browser=${{ matrix.browser }} --timeout 90
run: pytest tests/sync --browser=${{ matrix.browser }} --timeout 90
- name: Test Sync API
if: matrix.os == 'ubuntu-latest'
run: xvfb-run pytest -vv tests/sync --browser=${{ matrix.browser }} --timeout 90
run: xvfb-run pytest tests/sync --browser=${{ matrix.browser }} --timeout 90
- name: Test Async API
if: matrix.os != 'ubuntu-latest'
run: pytest -vv tests/async --browser=${{ matrix.browser }} --timeout 90
run: pytest tests/async --browser=${{ matrix.browser }} --timeout 90
- name: Test Async API
if: matrix.os == 'ubuntu-latest'
run: xvfb-run pytest -vv tests/async --browser=${{ matrix.browser }} --timeout 90
run: xvfb-run pytest tests/async --browser=${{ matrix.browser }} --timeout 90
- uses: actions/upload-artifact@v2
if: failure()
with:
name: ${{ matrix.browser }}-${{ matrix.os }}-${{ matrix.python-version }}
path: pw-log.txt

stable:
test-stable:
name: Stable
timeout-minutes: 30
env:
DEBUG: pw:*
DEBUG_FILE: pw-log.txt
strategy:
fail-fast: false
matrix:
Expand All @@ -116,59 +135,55 @@ jobs:
browser-channel: msedge
runs-on: ${{ matrix.os }}
steps:
- name: Install Media Pack
if: matrix.os == 'windows-latest'
shell: powershell
run: Install-WindowsFeature Server-Media-Foundation
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install dependencies
python-version: "3.10"
- name: Install dependencies & browsers
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade pip wheel
pip install -r local-requirements.txt
pip install -e .
python setup.py bdist_wheel
python -m playwright install-deps
- name: Install ffmpeg
run: python -m playwright install ffmpeg
python -m playwright install ${{ matrix.browser-channel }} --with-deps
- name: Common Tests
run: pytest -vv tests/common --browser=chromium --browser-channel=${{ matrix.browser-channel }} --timeout 90
run: pytest tests/common --browser=chromium --browser-channel=${{ matrix.browser-channel }} --timeout 90
- name: Test Sync API
if: matrix.os != 'ubuntu-latest'
run: pytest -vv tests/sync --browser=chromium --browser-channel=${{ matrix.browser-channel }} --timeout 90
run: pytest tests/sync --browser=chromium --browser-channel=${{ matrix.browser-channel }} --timeout 90
- name: Test Sync API
if: matrix.os == 'ubuntu-latest'
run: xvfb-run pytest -vv tests/sync --browser=chromium --browser-channel=${{ matrix.browser-channel }} --timeout 90
run: xvfb-run pytest tests/sync --browser=chromium --browser-channel=${{ matrix.browser-channel }} --timeout 90
- name: Test Async API
if: matrix.os != 'ubuntu-latest'
run: pytest -vv tests/async --browser=chromium --browser-channel=${{ matrix.browser-channel }} --timeout 90
run: pytest tests/async --browser=chromium --browser-channel=${{ matrix.browser-channel }} --timeout 90
- name: Test Async API
if: matrix.os == 'ubuntu-latest'
run: xvfb-run pytest -vv tests/async --browser=chromium --browser-channel=${{ matrix.browser-channel }} --timeout 90
run: xvfb-run pytest tests/async --browser=chromium --browser-channel=${{ matrix.browser-channel }} --timeout 90
- uses: actions/upload-artifact@v2
if: failure()
with:
name: ${{ matrix.browser-channel }}-${{ matrix.os }}
path: pw-log.txt

test-package-installations:
name: Test package installations
runs-on: ubuntu-latest
timeout-minutes: 30
build-conda:
name: Conda Build
strategy:
fail-fast: false
matrix:
os: [ubuntu-20.04, macos-10.15, windows-2019]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v1
with:
node-version: 12.x
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r local-requirements.txt
pip install -e .
python setup.py bdist_wheel
python -m playwright install-deps
- name: Test package installation
run: bash buildbots/test-package-installations.sh
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Get conda
uses: conda-incubator/setup-miniconda@v2
with:
python-version: 3.9
channels: conda-forge
- name: Prepare
run: conda install conda-build conda-verify
- name: Build
run: conda build .
32 changes: 26 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,49 @@
name: Upload Python Package
on:
workflow_dispatch:
release:
types: [published]
jobs:
deploy-pypi:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v1
with:
node-version: 12.x
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.8
python-version: 3.9
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r local-requirements.txt
pip install -e .
python setup.py bdist_wheel
python setup.py bdist_wheel --all
python -m playwright install-deps
- name: Publish package
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: twine upload dist/*

deploy-conda:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Get conda
uses: conda-incubator/setup-miniconda@v2
with:
python-version: 3.9
channels: conda-forge
- name: Prepare
run: conda install anaconda-client conda-build conda-verify
- name: Build and Upload
env:
ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_API_TOKEN }}
run: |
conda config --set anaconda_upload yes
conda build --user microsoft .
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
playwright/__pycache__/
**/__pycache__/
driver/
playwright/driver/
playwright.egg-info/
Expand All @@ -7,7 +7,7 @@ dist/
**/*.pyc
env/
htmlcov/
.coverage
.coverage*
.DS_Store
.vscode/
.eggs
Expand Down
Loading