Skip to content

Commit

Permalink
Add testing for Python 3.12 (#1004)
Browse files Browse the repository at this point in the history
  • Loading branch information
pseudo-rnd-thoughts authored May 21, 2024
1 parent e7aed98 commit 6d5a0f3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11']
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
steps:
- uses: actions/checkout@v4
- run: |
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ classifiers = [
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
'Intended Audience :: Science/Research',
'Topic :: Scientific/Engineering :: Artificial Intelligence',
]
Expand Down
2 changes: 1 addition & 1 deletion tests/vector/utils/test_shared_memory.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@
)
def test_shared_memory_create_read_write(space, num, ctx):
"""Test the shared memory functions, create, read and write for all testing spaces."""
ctx = mp if ctx is None else mp.get_context(ctx)
if ctx not in mp.get_all_start_methods():
pytest.skip(
f"Multiprocessing start method {ctx} not available on this platform."
)

ctx = mp if ctx is None else mp.get_context(ctx)
samples = [space.sample() for _ in range(num)]

try:
Expand Down

0 comments on commit 6d5a0f3

Please sign in to comment.