Skip to content

Commit

Permalink
Add tests for Python 3.12 (#16)
Browse files Browse the repository at this point in the history
Other:
- Remove brion dependency in tests
  • Loading branch information
GianlucaFicarelli authored Feb 6, 2024
1 parent 0e7cd7f commit 109309a
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/run-tox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.9', '3.10', '3.11']
python-version: ['3.9', '3.10', '3.11', '3.12']

steps:
- uses: actions/checkout@v4
Expand Down
10 changes: 10 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
Changelog
=========

Version 0.5.1
-------------

Improvements
~~~~~~~~~~~~

- Add tests for Python 3.12.
- Remove brion dependency in tests.


Version 0.5.0
-------------

Expand Down
5 changes: 4 additions & 1 deletion 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",
"Topic :: Scientific/Engineering :: Bio-Informatics",
]
dependencies = [
Expand Down Expand Up @@ -88,6 +89,8 @@ line_length = 100
[tool.ruff]
line-length = 100
target-version = "py39"

[tool.ruff.lint]
select = [
"D", # pydocstyle
"E", # pycodestyle
Expand All @@ -96,7 +99,7 @@ select = [
]
ignore = ["D301", "D413"]

[tool.ruff.pydocstyle]
[tool.ruff.lint.pydocstyle]
convention = "google"

[tool.pytest.ini_options]
Expand Down
9 changes: 4 additions & 5 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ testdeps =
envlist =
lint
docs
py{39,310,311}
py{39,310,311,312}

minversion = 3.1.0

Expand All @@ -27,7 +27,6 @@ extras =
all
deps =
{[base]testdeps}
brion;platform_system=='Linux'
elephant>=0.10.0,<0.13.0 # CPDF output changed in 0.13.0
commands =
python -m pytest -vs --cov={[base]name} tests/unit {posargs}
Expand All @@ -41,7 +40,6 @@ setenv =
BLUEETL_JOBLIB_JOBS=
deps =
{[base]testdeps}
brion;platform_system=='Linux'
elephant>=0.10.0,<0.13.0 # CPDF output changed in 0.13.0
bluepy>=2.5.2
commands = python -m pytest -vs tests/functional {posargs}
Expand Down Expand Up @@ -113,5 +111,6 @@ ignore = E203,E731,W503,W504,E501
[gh-actions]
python =
3.9: py39
3.10: py310, lint, docs
3.11: py311
3.10: py310
3.11: py311, lint, docs
3.12: py312

0 comments on commit 109309a

Please sign in to comment.