@@ -18,88 +18,119 @@ jobs:
1818 runs-on : ubuntu-latest
1919 strategy :
2020 matrix :
21- target : [x86_64, x86, aarch64]
21+ package : [polars_istr]
22+ os : [ubuntu-latest]
23+ target : [x86_64, aarch64]
2224 steps :
23- - uses : actions/checkout@v3
25+ - uses : actions/checkout@v4
2426 - uses : actions/setup-python@v4
2527 with :
26- python-version : " 3.8"
28+ python-version : " 3.9"
29+
2730 - name : Test
2831 run : |
2932 python -m pip install --upgrade pip
3033 pip install pytest
3134 pip install .
3235 pip install -r tests/requirements-test.txt
3336 pytest tests/test_correctness.py
37+
3438 - name : Build wheels
3539 uses : PyO3/maturin-action@v1
3640 with :
3741 target : ${{ matrix.target }}
3842 args : --release --out dist --find-interpreter
3943 sccache : " true"
4044 manylinux : auto
45+ maturin-version : 1.7.4
46+
4147 - name : Upload wheels
42- uses : actions/upload-artifact@v3
48+ uses : actions/upload-artifact@v4
4349 with :
44- name : wheels
45- path : dist
50+ name : wheel-${{ matrix.package }}-${{ matrix.os }}-${{ matrix.target }}
51+ path : dist/*.whl
4652
4753 windows :
4854 runs-on : windows-latest
4955 strategy :
5056 matrix :
51- target : [x64, x86]
57+ package : [polars_istr]
58+ os : [windows-latest]
59+ target : [x86_64]
5260 steps :
53- - uses : actions/checkout@v3
61+ - uses : actions/checkout@v4
5462 - uses : actions/setup-python@v4
5563 with :
56- python-version : " 3.8"
57- architecture : ${{ matrix.target }}
64+ python-version : " 3.9"
65+
66+ - name : Test
67+ run : |
68+ python -m pip install --upgrade pip
69+ pip install pytest
70+ pip install .
71+ pip install -r tests/requirements-test.txt
72+ pytest tests/test_correctness.py
73+
5874 - name : Build wheels
5975 uses : PyO3/maturin-action@v1
6076 with :
6177 target : ${{ matrix.target }}
6278 args : --release --out dist --find-interpreter
6379 sccache : " true"
80+ maturin-version : 1.7.4
81+
6482 - name : Upload wheels
65- uses : actions/upload-artifact@v3
83+ uses : actions/upload-artifact@v4
6684 with :
67- name : wheels
68- path : dist
85+ name : wheel-${{ matrix.package }}-${{ matrix.os }}-${{ matrix.target }}
86+ path : dist/*.whl
6987
7088 macos :
7189 runs-on : macos-13
7290 strategy :
7391 matrix :
92+ package : [polars_istr]
93+ os : [macos-13]
7494 target : [x86_64, aarch64]
7595 steps :
76- - uses : actions/checkout@v3
96+ - uses : actions/checkout@v4
7797 - uses : actions/setup-python@v4
7898 with :
79- python-version : " 3.8"
99+ python-version : " 3.9"
100+
101+ - name : Test
102+ run : |
103+ python -m pip install --upgrade pip
104+ pip install pytest
105+ pip install .
106+ pip install -r tests/requirements-test.txt
107+ pytest tests/test_correctness.py
108+
80109 - name : Build wheels
81110 uses : PyO3/maturin-action@v1
82111 with :
83112 target : ${{ matrix.target }}
84113 args : --release --out dist --find-interpreter
85114 sccache : " true"
115+ maturin-version : 1.7.4
116+
86117 - name : Upload wheels
87- uses : actions/upload-artifact@v3
118+ uses : actions/upload-artifact@v4
88119 with :
89- name : wheels
90- path : dist
120+ name : wheel-${{ matrix.package }}-${{ matrix.os }}-${{ matrix.target }}
121+ path : dist/*.whl
91122
92123 sdist :
93124 runs-on : ubuntu-latest
94125 steps :
95- - uses : actions/checkout@v3
126+ - uses : actions/checkout@v4
96127 - name : Build sdist
97128 uses : PyO3/maturin-action@v1
98129 with :
99130 command : sdist
100131 args : --out dist
101132 - name : Upload sdist
102- uses : actions/upload-artifact@v3
133+ uses : actions/upload-artifact@v4
103134 with :
104135 name : wheels
105136 path : dist
@@ -113,7 +144,7 @@ jobs:
113144 id-token : write
114145 environment : release
115146 steps :
116- - uses : actions/download-artifact@v3
147+ - uses : actions/download-artifact@v4
117148 with :
118149 name : wheels
119150 - name : Publish to PyPI
0 commit comments