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, add 3.11, 3.12, PyPy 3.9 and PyPy 3.10 and remove 3.7 #412

Merged
merged 7 commits into from
Feb 4, 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
20 changes: 18 additions & 2 deletions .github/workflows/ci-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,15 @@ jobs:
strategy:
matrix:
py:
- "3.7"
- "3.8"
- "3.9"
- "3.10"
- "3.11"
- "3.12"
- "pypy-3.8"
- "pypy-3.9"
gforcada marked this conversation as resolved.
Show resolved Hide resolved
- "pypy-3.10"
# Pre-release
- "3.11.0-alpha - 3.11.0"
os:
- "ubuntu-latest"
- "windows-latest"
Expand All @@ -32,12 +34,26 @@ jobs:
include:
- py: "pypy-3.8"
toxenv: "pypy38"
- py: "pypy-3.9"
toxenv: "pypy39"
- py: "pypy-3.10"
toxenv: "pypy310"
exclude:
# Linux and macOS don't have x86 python
- os: "ubuntu-latest"
architecture: x86
- os: "macos-latest"
architecture: x86
# Don't run all PyPy versions except latest on
# Windows/macOS. They are expensive to run.
- os: "windows-latest"
py: "pypy-3.8"
- os: "macos-latest"
py: "pypy-3.8"
- os: "windows-latest"
py: "pypy-3.9"
- os: "macos-latest"
py: "pypy-3.9"

name: "Python: ${{ matrix.py }}-${{ matrix.architecture }} on ${{ matrix.os }}"
runs-on: ${{ matrix.os }}
Expand Down
4 changes: 3 additions & 1 deletion tests/test_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@ def test_simple_happy_path(self):

def test_complex_happy_path(self):
# Ensure we can recursively resolve object attributes if necessary.
self.assertEqual(runner.resolve("os.path", "exists.__name__"), "exists")
from os.path import exists

self.assertEqual(runner.resolve("os.path", "exists.__name__"), exists.__name__)


class Test_run(unittest.TestCase):
Expand Down
4 changes: 3 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[tox]
envlist =
lint,
py37,py38,py39,py310,pypy38,
py38,py39,py310,py311,py312,pypy38,pypy39,pypy310
coverage,
docs
isolated_build = True
Expand All @@ -11,6 +11,8 @@ commands =
python --version
python -mpytest \
pypy38: --no-cov \
pypy39: --no-cov \
pypy310: --no-cov \
{posargs:}
extras =
testing
Expand Down