|
8 | 8 | types: [published] |
9 | 9 |
|
10 | 10 | jobs: |
11 | | - linux-build: |
| 11 | + test: |
12 | 12 | 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 | + |
18 | 14 | steps: |
19 | 15 | - uses: actions/checkout@v4 |
20 | 16 | - uses: prefix-dev/[email protected] |
21 | | - with: |
22 | | - environments: ${{ matrix.environment }} |
23 | 17 |
|
24 | 18 | - name: Lint with ruff |
25 | 19 | run: | |
26 | | - pixi run -e ${{ matrix.environment }} lint |
| 20 | + pixi run lint |
27 | 21 | - name: Test with pytest |
28 | 22 | run: | |
29 | | - pixi run -e ${{ matrix.environment }} test |
| 23 | + pixi run test |
30 | 24 | - name: Test with doctest |
31 | 25 | shell: bash |
32 | 26 | 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 | +
|
42 | 29 |
|
43 | 30 | build: |
44 | 31 | strategy: |
45 | 32 | fail-fast: false |
46 | 33 | 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] |
49 | 35 |
|
50 | 36 | runs-on: ${{ matrix.os }} |
51 | 37 |
|
52 | 38 | steps: |
53 | 39 | - uses: actions/checkout@v4 |
54 | 40 | - uses: prefix-dev/[email protected] |
55 | | - with: |
56 | | - environments: ${{ matrix.environment }} |
57 | 41 |
|
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 |
68 | 42 | - name: Build package |
69 | 43 | run: | |
70 | | - pixi run -e ${{ matrix.environment }} build-wheel |
| 44 | + pixi run cibuildwheel |
71 | 45 | - name: Upload package |
72 | 46 | uses: actions/upload-artifact@v4 |
73 | 47 | with: |
|
76 | 50 |
|
77 | 51 | publish: |
78 | 52 | runs-on: ubuntu-latest |
79 | | - needs: [build, linux-build] |
| 53 | + needs: build |
80 | 54 | permissions: |
81 | 55 | id-token: write |
82 | 56 | steps: |
|
0 commit comments