Skip to content

Commit 077cdb4

Browse files
committed
Try more CI.
1 parent f6578c6 commit 077cdb4

1 file changed

Lines changed: 64 additions & 34 deletions

File tree

.github/workflows/CI.yml

Lines changed: 64 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -11,59 +11,89 @@ jobs:
1111
linux:
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v3
15-
- uses: messense/maturin-action@v1
16-
with:
17-
manylinux: auto
18-
command: build
19-
args: --release --sdist -o dist --find-interpreter
20-
- name: Upload wheels linux
21-
uses: actions/upload-artifact@v4
22-
with:
23-
name: wheels
24-
path: dist
14+
- uses: actions/checkout@v3
15+
- name: Install test dependencies
16+
run: pip install -e ".[test]"
17+
- name: Run tests
18+
run: pytest
19+
- uses: messense/maturin-action@v1
20+
with:
21+
manylinux: auto
22+
command: build
23+
args: --release --sdist -o dist --find-interpreter
24+
- name: Upload wheels linux
25+
uses: actions/upload-artifact@v4
26+
with:
27+
name: wheels-ubuntu
28+
path: dist
2529

2630
windows:
2731
runs-on: windows-latest
2832
steps:
29-
- uses: actions/checkout@v3
30-
- uses: messense/maturin-action@v1
31-
with:
32-
command: build
33-
args: --release -o dist --find-interpreter
34-
- name: Upload wheels windows
35-
uses: actions/upload-artifact@v4
36-
with:
37-
name: wheels
38-
path: dist
33+
- uses: actions/checkout@v3
34+
- name: Install test dependencies
35+
run: pip install -e ".[test]"
36+
- name: Run tests
37+
run: pytest
38+
- uses: messense/maturin-action@v1
39+
with:
40+
command: build
41+
args: --release -o dist --find-interpreter
42+
- name: Upload wheels windows
43+
uses: actions/upload-artifact@v4
44+
with:
45+
name: wheels-windows
46+
path: dist
3947

4048
macos:
4149
runs-on: macos-latest
4250
steps:
43-
- uses: actions/checkout@v3
44-
- uses: messense/maturin-action@v1
45-
with:
46-
command: build
47-
args: --release -o dist --universal2 --find-interpreter
48-
- name: Upload wheels macos
49-
uses: actions/upload-artifact@v4
50-
with:
51-
name: wheels
52-
path: dist
51+
- uses: actions/checkout@v3
52+
- name: Install test dependencies
53+
run: pip install -e ".[test]"
54+
- name: Run tests
55+
run: pytest
56+
- uses: messense/maturin-action@v1
57+
with:
58+
command: build
59+
args: --release -o dist --universal2 --find-interpreter
60+
- name: Upload wheels macos
61+
uses: actions/upload-artifact@v4
62+
with:
63+
name: wheels-macos
64+
path: dist
65+
66+
---
5367

5468
release:
5569
name: Release
5670
runs-on: ubuntu-latest
5771
if: "startsWith(github.ref, 'refs/tags/')"
58-
needs: [ macos, windows, linux ]
72+
needs: [macos, windows, linux]
5973
steps:
6074
- uses: actions/download-artifact@v4
6175
with:
62-
name: wheels
76+
name: wheels-ubuntu
77+
path: wheels-ubuntu
78+
- uses: actions/download-artifact@v4
79+
with:
80+
name: wheels-windows
81+
path: wheels-windows
82+
- uses: actions/download-artifact@v4
83+
with:
84+
name: wheels-macos
85+
path: wheels-macos
86+
- name: Combine wheels
87+
run: |
88+
mkdir dist
89+
cp wheels-ubuntu/*.whl dist/
90+
cp wheels-ubuntu/*.tar.gz dist/
91+
cp wheels-windows/*.whl dist/
92+
cp wheels-macos/*.whl dist/
6393
- name: Publish to PyPI
6494
uses: messense/maturin-action@v1
6595
env:
6696
MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
6797
with:
6898
command: upload
69-
args: --skip-existing *
99+
args: --skip-existing dist/*

0 commit comments

Comments
 (0)