Skip to content

Commit

Permalink
TST: Enable more python 3.12 tests
Browse files Browse the repository at this point in the history
  • Loading branch information
BvB93 committed Oct 6, 2023
1 parent 6a604da commit 268ed1f
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 5 deletions.
20 changes: 15 additions & 5 deletions .github/workflows/pypi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,10 @@ jobs:
- ["cp39", "3.9"]
- ["cp310", "3.10"]
- ["cp311", "3.11"]
- ["cp312", "3.12"]
exclude:
- buildplat: [macos-latest, macosx_x86_64, macosx_10_14_x86_64]
version: ["cp312", "3.12"]

steps:
- uses: actions/checkout@v4
Expand All @@ -101,9 +105,15 @@ jobs:
name: wheels
path: dist

# TODO: Remove the manual h5py building once h5py 3.10 has been released with cp312 wheels
- name: Install dependencies
run: |
WHL_NAME=$(python scripts/get_whl_name.py dist ${{ matrix.buildplat[2] }})
if [[ "${{ matrix.version }}" == '3.12' ]]; then
sudo apt-get update
sudo apt-get install libhdf5-dev
pip install git+https://github.com/h5py/h5py@89e1e2e78d7fb167d2a67c9a8354ced6491160fe
fi
pip install "$WHL_NAME"[test] --prefer-binary
- name: Python info
Expand Down Expand Up @@ -147,12 +157,12 @@ jobs:
fail-fast: false
matrix:
buildplat:
- [ubuntu-latest, manylinux_aarch64]
- [ubuntu-latest, manylinux_aarch64]
version:
- ["cp38", "python3.8"]
- ["cp39", "python3.9"]
- ["cp310", "python3.10"]
- ["cp311", "python3.11"]
- ["cp38", "python3.8"]
- ["cp39", "python3.9"]
- ["cp310", "python3.10"]
- ["cp311", "python3.11"]

steps:
- uses: actions/checkout@v4
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ classifiers = [
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: Implementation :: CPython",
"Development Status :: 4 - Beta",
"Intended Audience :: Science/Research",
Expand Down

0 comments on commit 268ed1f

Please sign in to comment.