Skip to content

Commit 6cb70f3

Browse files
chore: test on Python 3.10 (microsoft#847)
1 parent 89b957b commit 6cb70f3

File tree

2 files changed

+25
-16
lines changed

2 files changed

+25
-16
lines changed

.github/workflows/ci.yml

Lines changed: 24 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -20,21 +20,20 @@ jobs:
2020
uses: actions/setup-python@v2
2121
with:
2222
python-version: 3.9
23-
- name: Install dependencies
23+
- name: Install dependencies & browsers
2424
run: |
25-
python -m pip install --upgrade pip
25+
python -m pip install --upgrade pip wheel
2626
pip install -r local-requirements.txt
2727
pip install -e .
2828
python setup.py bdist_wheel
29-
python -m playwright install-deps
30-
- name: Install browsers
31-
run: python -m playwright install
29+
python -m playwright install --with-deps
3230
- name: Lint
3331
uses: pre-commit/action@v2.0.3
3432
- name: Generate APIs
3533
run: bash scripts/update_api.sh
3634
- name: Verify generated API is up to date
3735
run: git diff --exit-code
36+
3837
build:
3938
name: Build
4039
timeout-minutes: 30
@@ -66,22 +65,32 @@ jobs:
6665
- os: macos-11.0
6766
python-version: 3.9
6867
browser: webkit
68+
- os: ubuntu-latest
69+
python-version: '3.10-dev'
70+
browser: chromium
71+
- os: windows-latest
72+
python-version: '3.10-dev'
73+
browser: chromium
74+
- os: macos-latest
75+
python-version: '3.10-dev'
76+
browser: chromium
77+
- os: macos-11.0
78+
python-version: '3.10-dev'
79+
browser: chromium
6980
runs-on: ${{ matrix.os }}
7081
steps:
7182
- uses: actions/checkout@v2
7283
- name: Set up Python
7384
uses: actions/setup-python@v2
7485
with:
7586
python-version: ${{ matrix.python-version }}
76-
- name: Install dependencies
87+
- name: Install dependencies & browsers
7788
run: |
78-
python -m pip install --upgrade pip
89+
python -m pip install --upgrade pip wheel
7990
pip install -r local-requirements.txt
8091
pip install -e .
8192
python setup.py bdist_wheel
82-
python -m playwright install-deps
83-
- name: Install browsers
84-
run: python -m playwright install
93+
python -m playwright install --with-deps
8594
- name: Common Tests
8695
run: pytest tests/common --browser=${{ matrix.browser }} --timeout 90
8796
- name: Test Reference count
@@ -130,16 +139,14 @@ jobs:
130139
- name: Set up Python
131140
uses: actions/setup-python@v2
132141
with:
133-
python-version: 3.8
134-
- name: Install dependencies
142+
python-version: 3.9
143+
- name: Install dependencies & browsers
135144
run: |
136-
python -m pip install --upgrade pip
145+
python -m pip install --upgrade pip wheel
137146
pip install -r local-requirements.txt
138147
pip install -e .
139148
python setup.py bdist_wheel
140-
python -m playwright install-deps
141-
- name: Install browsers
142-
run: python -m playwright install ${{ matrix.browser-channel }}
149+
python -m playwright install ${{ matrix.browser-channel }} --with-deps
143150
- name: Common Tests
144151
run: pytest tests/common --browser=chromium --browser-channel=${{ matrix.browser-channel }} --timeout 90
145152
- name: Test Sync API
@@ -159,6 +166,7 @@ jobs:
159166
with:
160167
name: ${{ matrix.browser-channel }}-${{ matrix.os }}
161168
path: pw-log.txt
169+
162170
build-conda:
163171
name: Conda Build
164172
strategy:

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@ def run(self) -> None:
153153
"Programming Language :: Python :: 3.7",
154154
"Programming Language :: Python :: 3.8",
155155
"Programming Language :: Python :: 3.9",
156+
"Programming Language :: Python :: 3.10",
156157
"License :: OSI Approved :: Apache Software License",
157158
"Operating System :: OS Independent",
158159
],

0 commit comments

Comments
 (0)