Skip to content

Commit 83f4d74

Browse files
authored
ci: test also on Python 3.7 (#19)
1 parent 3aefe16 commit 83f4d74

File tree

4 files changed

+12
-1
lines changed

4 files changed

+12
-1
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ jobs:
99
strategy:
1010
matrix:
1111
os: [ubuntu-latest, windows-latest, macos-latest]
12+
python-version: [3.7, 3.8]
1213
runs-on: ${{ matrix.os }}
1314
steps:
1415
- uses: actions/checkout@v2
@@ -29,7 +30,7 @@ jobs:
2930
- name: Set up Python
3031
uses: actions/setup-python@v2
3132
with:
32-
python-version: 3.8
33+
python-version: ${{ matrix.python-version }}
3334
- name: Install dependencies
3435
run: |
3536
python -m pip install --upgrade pip

local-requirements.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@ pytest==5.4.3
22
pytest-asyncio==0.14.0
33
pytest-cov==2.10.0
44
mypy==0.782
5+
setuptools==49.1.0
6+
wheel==0.34.2

playwright/playwright.py

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

2828
class Playwright:
2929
def __init__(self) -> None:
30+
if sys.platform == 'win32':
31+
loop = asyncio.ProactorEventLoop()
32+
asyncio.set_event_loop(loop)
3033
self.loop = asyncio.get_event_loop()
3134
self.loop.run_until_complete(self._sync_init())
3235

setup.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,12 @@
3333
'typing-extensions',
3434
],
3535
classifiers=[
36+
'Topic :: Software Development :: Testing',
37+
'Topic :: Internet :: WWW/HTTP :: Browsers',
38+
'Intended Audience :: Developers',
3639
'Programming Language :: Python :: 3',
40+
'Programming Language :: Python :: 3.7',
41+
'Programming Language :: Python :: 3.8',
3742
'License :: OSI Approved :: Apache Software License',
3843
'Operating System :: OS Independent',
3944
],

0 commit comments

Comments
 (0)