-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (37 loc) · 1007 Bytes
/
pr_build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: PR Build and Test
on:
pull_request:
branches:
- main
paths:
- "src/radius_clustering/**"
- "tests/**"
- "pyproject.toml"
workflow_dispatch:
jobs:
run_pytest:
name: Run pytest
uses: ./.github/workflows/tests.yml
build_test_sdist:
name: Test source distribution
runs-on: self-hosted
needs: run_pytest
strategy:
fail-fast: true
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Build sdist
run: |
pip install --upgrade pip
pip install pipx
pipx run build --sdist
- name: Test sdist
run: |
pip install ./dist/*.tar.gz
python -c "import radius_clustering; print(f'Successfully imported version {radius_clustering.__version__}')"