Skip to content

Commit 6598dd8

Browse files
committed
modifying workflows for less builds
1 parent 30d27fc commit 6598dd8

File tree

4 files changed

+39
-11
lines changed

4 files changed

+39
-11
lines changed

.github/workflows/build_wheels.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ on:
55
push:
66
branches:
77
- main
8+
paths:
9+
- "src/radius_clustering/**"
10+
- "tests/**"
11+
- "pyproject.toml"
812
release:
913
types:
1014
- published
@@ -32,12 +36,15 @@ jobs:
3236

3337
build_sdist:
3438
name: Build source distribution
35-
runs-on: ubuntu-latest
39+
runs-on: self-hosted
3640
steps:
3741
- uses: actions/checkout@v4
3842

3943
- name: Build sdist
40-
run: pipx run build --sdist
44+
run: |
45+
pip install --upgrade pip
46+
pip install --upgrade pipx
47+
pipx run build --sdist
4148
4249
- uses: actions/upload-artifact@v4
4350
with:
@@ -46,7 +53,7 @@ jobs:
4653

4754
upload_pypi:
4855
needs: [build_wheels, build_sdist]
49-
runs-on: ubuntu-latest
56+
runs-on: self-hosted
5057
environment:
5158
name: pypi
5259
url: https://pypi.org/p/radius-clustering

.github/workflows/pr_build.yml

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,9 @@ jobs:
1414
build_test_wheels:
1515
name: Test build on Self-Hosted Runner
1616
runs-on: self-hosted
17+
needs: run_pytest
1718
strategy:
18-
fail-fast: false
19-
matrix:
20-
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
19+
fail-fast: true
2120
steps:
2221
- uses: actions/checkout@v4
2322

@@ -27,7 +26,18 @@ jobs:
2726
package-dir: .
2827
output-dir: ./wheelhouse
2928
config-file: "{package}/pyproject.toml"
30-
29+
30+
test_built_wheels:
31+
name: Test built wheels
32+
needs: build_test_wheels
33+
runs-on: self-hosted
34+
strategy:
35+
fail-fast: true
36+
matrix:
37+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
38+
steps:
39+
- uses: actions/checkout@v4
40+
3141
- name: Setup Python
3242
uses: actions/setup-python@v5
3343
with:
@@ -45,11 +55,18 @@ jobs:
4555
build_test_sdist:
4656
name: Test source distribution
4757
runs-on: self-hosted
58+
strategy:
59+
fail-fast: true
60+
matrix:
61+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
4862
steps:
4963
- uses: actions/checkout@v4
5064

5165
- name: Build sdist
52-
run: pipx run build --sdist
66+
run: |
67+
pip install --upgrade pip
68+
pip install pipx
69+
pipx run build --sdist
5370
5471
- name: Test sdist
5572
run: |

.github/workflows/tests.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,21 @@ jobs:
88
pytest:
99
name: Run pytest
1010
runs-on: self-hosted
11+
strategy:
12+
fail-fast: true
13+
matrix:
14+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
1115
steps:
1216
- uses: actions/checkout@v4
1317

1418
- name: Set up Python
1519
uses: actions/setup-python@v5
1620
with:
17-
python-version: '3.10'
21+
python-version: ${{ matrix.python-version }}
1822

1923
- name: Install dependencies
2024
run: |
2125
python -m pip install --upgrade pip
22-
python -m pip install pytest
2326
python -m pip install -e ".[dev]"
2427
2528
- name: Run tests with pytest

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ license = {file = "LICENSE"}
2424
classifiers=[
2525
"Intended Audience :: Science/Research",
2626
"Intended Audience :: Developers",
27-
"License :: OSI Approved :: MIT License",
27+
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
2828
"Programming Language :: C",
2929
"Programming Language :: C++",
3030
"Programming Language :: Python",
@@ -33,6 +33,7 @@ classifiers=[
3333
"Operating System :: Microsoft :: Windows",
3434
"Operating System :: POSIX",
3535
"Operating System :: Unix",
36+
"Operating System :: MacOS",
3637
"Programming Language :: Python :: 3",
3738
"Programming Language :: Python :: 3.9",
3839
"Programming Language :: Python :: 3.10",

0 commit comments

Comments
 (0)