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>
  • Loading branch information
henryiii committed Sep 12, 2023
1 parent d84716b commit 92355c1
Show file tree
Hide file tree
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
Expand Up @@ -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
Expand All @@ -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
Expand Up @@ -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",
Expand All @@ -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"]
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 92355c1

Please sign in to comment.