Skip to content

Commit fa86da0

Browse files
committed
use uv for building. use 2 workers in CI for testing
1 parent 7352247 commit fa86da0

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
- uses: actions/setup-python@v5
2525

2626
- name: Install cibuildwheel
27-
run: python -m pip install cibuildwheel==2.23.0
27+
run: python -m pip install "cibuildwheel[uv]==2.23.0"
2828

2929
- name: Build wheels
3030
run: python -m cibuildwheel --output-dir wheelhouse

.github/workflows/test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,16 +43,16 @@ jobs:
4343

4444
- name: Install moleculekit
4545
run: |
46-
pip install build pytest pytest-xdist
47-
python -m build
46+
pip install build pytest pytest-xdist uv
47+
uv build
4848
pip install dist/moleculekit-*.whl
4949
5050
- name: List conda environment
5151
run: conda list
5252

5353
- name: Test
5454
run: |
55-
pytest -n auto ./tests/ --durations=20
55+
pytest -n 2 ./tests/ --durations=20
5656
env:
5757
LOCAL_PDB_REPO: ./tests/pdb/
5858
SKIP_SPEED_TESTS: True

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,4 +59,5 @@ norecursedirs = "test-data"
5959
[tool.cibuildwheel]
6060
skip = ["pp*"] # Disable PyPy builds due to Cython
6161
test-requires = ["pytest", "pytest-xdist"]
62-
test-command = "pytest -n auto {project}/tests"
62+
test-command = "pytest -n auto {project}/tests"
63+
build-frontend = "build[uv]"

0 commit comments

Comments
 (0)