Skip to content

chore: test on python 3.10 #847

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Sep 10, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
40 changes: 24 additions & 16 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,21 +20,20 @@ jobs:
uses: actions/setup-python@v2
with:
python-version: 3.9
- 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: Lint
uses: pre-commit/action@v2.0.3
- name: Generate APIs
run: bash scripts/update_api.sh
- name: Verify generated API is up to date
run: git diff --exit-code

build:
name: Build
timeout-minutes: 30
Expand Down Expand Up @@ -66,22 +65,32 @@ jobs:
- os: macos-11.0
python-version: 3.9
browser: webkit
- os: ubuntu-latest
python-version: '3.10-dev'
browser: chromium
- os: windows-latest
python-version: '3.10-dev'
browser: chromium
- os: macos-latest
python-version: '3.10-dev'
browser: chromium
- os: macos-11.0
python-version: '3.10-dev'
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 tests/common --browser=${{ matrix.browser }} --timeout 90
- name: Test Reference count
Expand Down Expand Up @@ -130,16 +139,14 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install dependencies
python-version: 3.9
- 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 ${{ matrix.browser-channel }}
python -m playwright install ${{ matrix.browser-channel }} --with-deps
- name: Common Tests
run: pytest tests/common --browser=chromium --browser-channel=${{ matrix.browser-channel }} --timeout 90
- name: Test Sync API
Expand All @@ -159,6 +166,7 @@ jobs:
with:
name: ${{ matrix.browser-channel }}-${{ matrix.os }}
path: pw-log.txt

build-conda:
name: Conda Build
strategy:
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ def run(self) -> None:
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
],
Expand Down