Skip to content

Commit

Permalink
ci: add 3.12 testing
Browse files Browse the repository at this point in the history
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
henryiii committed Sep 12, 2023
1 parent 2cbc029 commit c680f24
Showing 2 changed files with 10 additions and 6 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -37,13 +37,15 @@ jobs:
- "3.9"
- "3.10"
- "3.11"
- "3.12"
name: Check Python ${{ matrix.python-version }}
steps:
- uses: actions/checkout@v4

- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
allow-prereleases: true

- name: Requirements check
run: python -m pip list
@@ -55,9 +57,9 @@ jobs:
run: python -m pytest

- name: Install plotting requirements too
if: matrix.python-version != '3.10'
if: matrix.python-version != '3.12'
run: python -m pip install -e ".[test,plot]"

- name: Test plotting too
if: matrix.python-version != '3.10'
if: matrix.python-version != '3.12'
run: python -m pytest --mpl
10 changes: 6 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -22,6 +22,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",
"Topic :: Scientific/Engineering :: Information Analysis",
"Topic :: Scientific/Engineering :: Mathematics",
@@ -37,7 +38,8 @@ requires-python = ">=3.7"
dependencies = [
"boost-histogram>=1.3.1,<1.5",
"histoprint>=2.2.0",
"numpy>=1.14.5",
'numpy>=1.14.5;python_version<"3.12"',
'numpy>=1.26.0b1;python_version>="3.12"',
'typing-extensions>=4;python_version<"3.11"',
]
dynamic = ["version"]
@@ -72,8 +74,8 @@ dask = [
test = [
"pytest >=6",
"pytest-mpl >=0.12",
"dask[dataframe] >=2022; python_version>='3.8'",
"dask_histogram >=2023.1; python_version>='3.8'",
"dask[dataframe] >=2022; python_version>='3.8' and python_version<'3.12'",
"dask_histogram >=2023.1; python_version>='3.8' and python_version<'3.12'",
]
dev = [
"pytest >=6",
@@ -185,7 +187,7 @@ messages_control.disable = [
[tool.ruff]
select = [
"E", "F", "W", # flake8
"B", "B904", # flake8-bugbear
"B", # flake8-bugbear
"I", # isort
"ARG", # flake8-unused-arguments
"C4", # flake8-comprehensions

0 comments on commit c680f24

Please sign in to comment.