Skip to content

Commit c748647

Browse files
ci: test Python 3.10-3.13 and block pandas 2.0.0
1 parent 2f3153b commit c748647

3 files changed

Lines changed: 20 additions & 8 deletions

File tree

.github/workflows/ci.yml

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
run: uv python install 3.11
2222

2323
- name: Install dependencies
24-
run: uv sync --all-extras
24+
run: uv sync --all-extras --python 3.11
2525

2626
- name: Run pre-commit
2727
uses: pre-commit/action@v3.0.1
@@ -30,8 +30,9 @@ jobs:
3030
runs-on: ubuntu-latest
3131
needs: lint
3232
strategy:
33+
fail-fast: false
3334
matrix:
34-
python-version: ["3.11", "3.12", "3.13"]
35+
python-version: ["3.10", "3.11", "3.12", "3.13"]
3536

3637
steps:
3738
- uses: actions/checkout@v4
@@ -45,10 +46,21 @@ jobs:
4546
run: uv python install ${{ matrix.python-version }}
4647

4748
- name: Install dependencies
48-
run: uv sync --all-extras
49+
run: uv sync --all-extras --python ${{ matrix.python-version }}
50+
51+
- name: Validate Python and pandas resolution
52+
run: |
53+
uv run --python ${{ matrix.python-version }} python - <<'PY'
54+
import platform
55+
import pandas as pd
56+
57+
print("Python:", platform.python_version())
58+
print("pandas:", pd.__version__)
59+
assert pd.__version__ != "2.0.0", "pandas==2.0.0 is blocked in CI"
60+
PY
4961
5062
- name: Run tests
51-
run: uv run pytest tests/ -v --cov=src/posecheck_fast --cov-report=xml
63+
run: uv run --python ${{ matrix.python-version }} pytest tests/ -v --cov=src/posecheck_fast --cov-report=xml
5264

5365
- name: Upload coverage
5466
uses: codecov/codecov-action@v4

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
[![PyPI version](https://badge.fury.io/py/posecheck-fast.svg)](https://pypi.org/project/posecheck-fast/)
44
[![CI](https://github.com/LigandPro/posecheck-fast/actions/workflows/ci.yml/badge.svg)](https://github.com/LigandPro/posecheck-fast/actions/workflows/ci.yml)
55
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
6-
[![Python 3.11+](https://img.shields.io/badge/python-3.11+-blue.svg)](https://www.python.org/downloads/)
6+
[![Python 3.10+](https://img.shields.io/badge/python-3.10+-blue.svg)](https://www.python.org/downloads/)
77

88
Fast docking evaluation metrics: symmetry-corrected RMSD and lightweight PoseBusters filters.
99

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "posecheck-fast"
33
version = "0.1.12"
44
description = "Fast docking evaluation metrics: symmetry-corrected RMSD and PoseBusters filters"
55
readme = "README.md"
6-
requires-python = ">=3.11"
6+
requires-python = ">=3.10"
77
license = "MIT"
88
authors = [
99
{ name = "Nikolenko" }
@@ -12,7 +12,7 @@ keywords = ["docking", "rmsd", "posebusters", "molecular-docking", "benchmark"]
1212

1313
dependencies = [
1414
"numpy>=1.21",
15-
"pandas>=1.3",
15+
"pandas>=1.3,!=2.0.0",
1616
"spyrmsd>=0.6",
1717
"rdkit>=2022.03",
1818
"torch>=1.10",
@@ -44,7 +44,7 @@ dev = [
4444

4545
[tool.ruff]
4646
src = ["src/"]
47-
target-version = "py311"
47+
target-version = "py310"
4848

4949
[tool.ruff.lint]
5050
select = [

0 commit comments

Comments
 (0)