Skip to content

Commit 87e214c

Browse files
committed
fix bug in test workflow
1 parent 13351f9 commit 87e214c

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

.github/workflows/pr_build.yml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,14 @@ jobs:
1010
run_pytest:
1111
name: Run pytest
1212
uses: ./.github/workflows/tests.yml
13-
13+
1414
build_test_wheels:
1515
name: Test build on Ubuntu
1616
runs-on: ubuntu-latest
17+
strategy:
18+
fail-fast: false
19+
matrix:
20+
python-version: [3.9, 3.10, 3.11, 3.12, 3.13]
1721
steps:
1822
- uses: actions/checkout@v4
1923

@@ -23,10 +27,19 @@ jobs:
2327
package-dir: .
2428
output-dir: ./wheelhouse
2529
config-file: "{package}/pyproject.toml"
30+
31+
- name: Setup Python
32+
uses: actions/setup-python@v5
33+
with:
34+
python-version: ${{ matrix.python-version }}
2635

2736
- name: Test import
2837
run: |
29-
pip install ./wheelhouse/*.whl
38+
PY_VESION=$(echo ${{ matrix.python-version }} | sed 's/\.//g')
39+
40+
ls -la ./wheelhouse/
41+
42+
pip install ./wheelhouse/*cp${PY_VERSION}*.whl
3043
python -c "import radius_clustering; print(f'Successfully imported version {radius_clustering.__version__}')"
3144
3245
build_test_sdist:

0 commit comments

Comments
 (0)