Skip to content

Commit 102d49e

Browse files
committed
update CI/CD
1 parent ce238ab commit 102d49e

2 files changed

Lines changed: 25 additions & 47 deletions

File tree

.github/workflows/github-deploy.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,25 @@ jobs:
1919
strategy:
2020
fail-fast: false
2121
matrix:
22-
os: [ubuntu-20.04, windows-2019, macos-12]
22+
include:
23+
- os: macos-15-intel
24+
- os: macos-14 # Apple silicon
25+
- os: ubuntu-latest
26+
- os: ubuntu-24.04-arm
27+
- os: windows-latest
28+
- os: windows-11-arm
2329

2430
steps:
2531
- uses: actions/checkout@v4
2632

2733
- name: Build wheels
28-
uses: pypa/cibuildwheel@v2.21.3
34+
uses: pypa/cibuildwheel@v3.2.1
35+
env:
36+
CIBW_ARCHS: ${{ matrix.cibw_archs }}
2937

3038
- uses: actions/upload-artifact@v4
3139
with:
32-
name: dist-${{ matrix.os }}-${{ matrix.python-version }}
40+
name: dist-${{ matrix.os }}-${{ matrix.cibw_archs || 'default' }}
3341
path: ./wheelhouse/*.whl
3442

3543
build_sdist:

.github/workflows/main.yml

Lines changed: 14 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,58 +1,28 @@
11
name: CI
22

3-
#on: [push, pull_request, workflow_dispatch]
4-
on: [push]
5-
3+
on: [push, workflow_dispatch]
64

75
concurrency:
86
group: ${{ github.workflow }}-${{ github.ref }}
97
cancel-in-progress: true
108

119
jobs:
12-
build_wheels:
13-
name: Build wheels on ${{ matrix.os }}
10+
build:
1411
runs-on: ${{ matrix.os }}
1512
strategy:
1613
fail-fast: false
17-
# matrix:
18-
# os: [ubuntu-20.04, windows-2022, macos-14]
1914
matrix:
20-
include:
21-
- os: macos-15-intel # mac x86
22-
- os: macos-14 # Apple silicon
23-
- os: ubuntu-latest
24-
- os: ubuntu-24.04-arm
25-
- os: windows-latest
26-
- os: windows-11-arm
15+
os: [ubuntu-latest, windows-latest, macos-latest]
16+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
2717

2818
steps:
29-
- uses: actions/checkout@v4
30-
31-
- name: Build wheels
32-
uses: pypa/cibuildwheel@v3.2.1
33-
env:
34-
CIBW_ARCHS: ${{ matrix.cibw_archs }}
35-
36-
- uses: actions/upload-artifact@v4
37-
with:
38-
name: dist-${{ matrix.os }}-${{ matrix.cibw_archs || 'default' }}
39-
path: ./wheelhouse/*.whl
40-
41-
# build:
42-
# runs-on: ${{ matrix.os }}
43-
# strategy:
44-
# fail-fast: false
45-
# matrix:
46-
# os: [ubuntu-latest, windows-latest, macos-latest]
47-
# python-version: [3.9, "3.10", "3.11", "3.12", "3.13", "3.14"]
48-
49-
# steps:
50-
# - uses: actions/checkout@v4
51-
# - name: Set up Python ${{ matrix.python-version }}
52-
# uses: actions/setup-python@v5
53-
# with:
54-
# python-version: ${{ matrix.python-version }}
55-
# - name: Install test dependencies
56-
# run: python -m pip install .[test]
57-
# - name: run tests
58-
# run: python run_tests.py
19+
- uses: actions/checkout@v4
20+
- name: Set up Python ${{ matrix.python-version }}
21+
uses: actions/setup-python@v5
22+
with:
23+
python-version: ${{ matrix.python-version }}
24+
cache: 'pip'
25+
- name: Install test dependencies
26+
run: python -m pip install .[test]
27+
- name: run tests
28+
run: python run_tests.py

0 commit comments

Comments
 (0)