Skip to content

Commit

Permalink
Update testing configuration
Browse files Browse the repository at this point in the history
- Add new Pythons and drop the old ones in tox and CI.
- Split testing dependencies between testing and linting.
- Do not use deprecated `setup.py test`.
- Use the same pytest command in tox and CI.
  • Loading branch information
frenzymadness committed Nov 18, 2024
1 parent bbfffd3 commit a31d286
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test-and-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-20.04, macos-11, windows-2022]
python: ["3.6", "3.7", "3.8", "3.9", "3.10"]
python: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14-dev"]

steps:
- name: Set up Python
Expand Down
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@
packages=find_packages(),
include_package_data=True,
zip_safe=False,
test_loader="unittest:TestLoader",
test_suite="boolean.test_boolean",
keywords="boolean expression, boolean algebra, logic, expression parser",
classifiers=[
"Development Status :: 5 - Production/Stable",
Expand All @@ -54,7 +52,9 @@
[
"pytest >= 6, != 7.0.0",
"pytest-xdist >= 2",
"twine",
],
"linting":
[
"black",
"isort",
"pycodestyle",
Expand Down
5 changes: 3 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
[tox]
envlist=py36,py37,py38,py39,310
envlist=py39,py310,py311,py312,py313,py314
[testenv]
commands=python setup.py test
extras=testing
commands=pytest -vvs boolean

0 comments on commit a31d286

Please sign in to comment.