Skip to content

Commit d67306f

Browse files
committed
CI cibuildwheel linux
1 parent 6714637 commit d67306f

File tree

3 files changed

+3043
-6755
lines changed

3 files changed

+3043
-6755
lines changed

.github/workflows/python-package.yml

Lines changed: 9 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -8,66 +8,40 @@ on:
88
types: [published]
99

1010
jobs:
11-
linux-build:
11+
test:
1212
runs-on: ubuntu-latest
13-
container: quay.io/pypa/manylinux2014_x86_64
14-
strategy:
15-
fail-fast: false
16-
matrix:
17-
environment: [py39, py310, py311, py312]
13+
1814
steps:
1915
- uses: actions/checkout@v4
2016
- uses: prefix-dev/[email protected]
21-
with:
22-
environments: ${{ matrix.environment }}
2317

2418
- name: Lint with ruff
2519
run: |
26-
pixi run -e ${{ matrix.environment }} lint
20+
pixi run lint
2721
- name: Test with pytest
2822
run: |
29-
pixi run -e ${{ matrix.environment }} test
23+
pixi run test
3024
- name: Test with doctest
3125
shell: bash
3226
run: |
33-
CMD=doctest pixi run -e ${{ matrix.environment }} doc
34-
- name: Build package
35-
run: |
36-
pixi run -e ${{ matrix.environment }} build-wheel
37-
- name: Upload package
38-
uses: actions/upload-artifact@v4
39-
with:
40-
name: build-ubuntu-latest-${{ strategy.job-index }}
41-
path: dist/*.whl
27+
CMD=doctest pixi run doc
28+
4229
4330
build:
4431
strategy:
4532
fail-fast: false
4633
matrix:
47-
os: [windows-latest, macos-12, macos-14]
48-
environment: [py39, py310, py311, py312]
34+
os: [ubuntu-latest, windows-latest, macos-12, macos-14]
4935

5036
runs-on: ${{ matrix.os }}
5137

5238
steps:
5339
- uses: actions/checkout@v4
5440
- uses: prefix-dev/[email protected]
55-
with:
56-
environments: ${{ matrix.environment }}
5741

58-
- name: Lint with ruff
59-
run: |
60-
pixi run -e ${{ matrix.environment }} lint
61-
- name: Test with pytest
62-
run: |
63-
pixi run -e ${{ matrix.environment }} test
64-
- name: Test with doctest
65-
shell: bash
66-
run: |
67-
CMD=doctest pixi run -e ${{ matrix.environment }} doc
6842
- name: Build package
6943
run: |
70-
pixi run -e ${{ matrix.environment }} build-wheel
44+
pixi run cibuildwheel
7145
- name: Upload package
7246
uses: actions/upload-artifact@v4
7347
with:
@@ -76,7 +50,7 @@ jobs:
7650

7751
publish:
7852
runs-on: ubuntu-latest
79-
needs: [build, linux-build]
53+
needs: build
8054
permissions:
8155
id-token: write
8256
steps:

0 commit comments

Comments
 (0)