File tree Expand file tree Collapse file tree 1 file changed +53
-0
lines changed Expand file tree Collapse file tree 1 file changed +53
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Build wheels
2+
3+ on :
4+ pull_request :
5+ branches :
6+ - ' **' # Matches all branch names, for PRs
7+ push :
8+ branches :
9+ - ' main' # Run tests on main branch
10+
11+ jobs :
12+ build-wheels :
13+ name : Build wheels
14+ runs-on : ${{ matrix.os }}
15+ timeout-minutes : 5
16+ strategy :
17+ fail-fast : false
18+ matrix :
19+ os : [ubuntu-latest, windows-latest]
20+ python-version : [3.9, 3.11, 3.13]
21+ exclude :
22+ - os : windows-latest
23+ python-version : 3.9
24+ - os : windows-latest
25+ python-version : 3.13
26+
27+ steps :
28+ - uses : actions/checkout@v4
29+
30+ - name : Install uv
31+ uses : astral-sh/setup-uv@v5
32+ with :
33+ enable-cache : true
34+
35+ - name : Set up Python
36+ uses : actions/setup-python@v5
37+ with :
38+ python-version : ${{ matrix.python-version }}
39+
40+ - name : Install the project
41+ run : uv sync
42+
43+ - name : Build the wheel
44+ run : uv build --wheel
45+
46+ - name : Initialize test environment
47+ run : |
48+ uv init --no-workspace test
49+ cd test
50+ uv add ../dist/*.whl
51+
52+ - name : Verify installation
53+ run : uv run -- python -c "from python_mscl import mscl"
You can’t perform that action at this time.
0 commit comments