Skip to content
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

Update supported Python versions for tests to 3.10, 3.11, and 3.12 #654

Merged
merged 2 commits into from
Apr 18, 2024
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
51 changes: 38 additions & 13 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ on:
push:
branches:
- master
tags:
pull_request:

jobs:
Expand All @@ -16,29 +15,55 @@ jobs:
include:
# linux
- os: ubuntu-latest
python: 3.7
toxenv: py37
python: "3.12"
toxenv: py312
- os: ubuntu-latest
python: 3.8
toxenv: py38
python: "3.11"
toxenv: py311
- os: ubuntu-latest
python: "3.10"
toxenv: py310
- os: ubuntu-latest
python: 3.9
python: "3.9"
toxenv: py39
# Blocked by https://github.com/web-platform-tests/wpt/issues/35978
# - os: ubuntu-latest
# python: "3.10"
# toxenv: py310
- os: ubuntu-latest
python: "3.8"
toxenv: py38
# windows
- os: windows-latest
python: 3.8
python: "3.12"
toxenv: py312
- os: windows-latest
python: "3.11"
toxenv: py311
- os: windows-latest
python: "3.10"
toxenv: py310
- os: windows-latest
python: "3.9"
toxenv: py39
- os: windows-latest
python: "3.8"
toxenv: py38
# macos
- os: macos-latest
python: 3.8
python: "3.12"
toxenv: py312
- os: macos-latest
python: "3.11"
toxenv: py311
- os: macos-latest
python: "3.10"
toxenv: py310
- os: macos-latest
python: "3.9"
toxenv: py39
- os: macos-latest
python: "3.8"
toxenv: py38
# misc
- os: ubuntu-latest
python: 3.8
python: "3.11"
toxenv: pylama

steps:
Expand Down
9 changes: 5 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
.idea/
.cache/
.pytest_cache/
.tox/
.vscode/
build/
dist/
*.egg-info
*.pyc
.coverage
.pytest_cache/
.vscode/
build
dist
.DS_Store
2 changes: 1 addition & 1 deletion requirements/tests.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ coveralls[yaml]==3.3.1
pytest==7.4.4
pytest-cov==4.1.0
pytest-mock==3.11.1
wptserve==3.0
wptserve==4.0.2
4 changes: 3 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,11 @@ def get_version():
"Topic :: System :: Software Distribution",
"Topic :: Utilities",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
],
keywords='mozilla',
author='Mozilla Automation and Testing Team',
Expand Down
2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def httpd():
doc_root=os.path.join(HERE, 'data'),
routes=routes,
)
httpd.start(block=False)
httpd.start()
yield httpd
httpd.stop()

Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py37, py38, py39, pylama
envlist = py38, py39, py310, py311, py312, pylama

[testenv]
usedevelop = true
Expand Down
Loading