File tree 1 file changed +20
-15
lines changed
1 file changed +20
-15
lines changed Original file line number Diff line number Diff line change @@ -158,24 +158,29 @@ jobs:
158
158
- uses : actions/setup-python@v4
159
159
with :
160
160
python-version : ${{ matrix.python-version }}
161
-
162
- - name : Build wheels
163
- uses : PyO3/maturin-action @v1
161
+
162
+ - name : Set up Rust
163
+ uses : actions-rs/toolchain @v1
164
164
with :
165
- target : ${{ matrix.target }}
166
- args : --release --features test --out dist --find-interpreter --manifest-path py-gtfsort/Cargo.toml
167
- sccache : ' true '
168
- manylinux : auto
165
+ toolchain : stable
166
+
167
+ - name : Install pipx
168
+ run : python -m pip install --user pipx && python -m pipx ensurepath
169
169
170
- - name : Install built package
171
- run : |
172
- pip install gtfsortpy --no-index --find-links dist --force-reinstall
170
+ - name : Install dependencies
171
+ run : pipx install hatch maturin
173
172
174
- - name : Upload wheels
175
- uses : actions/upload-artifact@v3
176
- with :
177
- name : wheels
178
- path : dist
173
+ - name : Create Hatch environment
174
+ shell : bash
175
+ run : cd py-gtfsort && hatch env create
176
+
177
+ - name : Activate Hatch env, build and run py test
178
+ shell : bash
179
+ run : |
180
+ cd py-gtfsort
181
+ source $(hatch env find)/bin/activate
182
+ maturin develop --release --manifest-path Cargo.toml --features test
183
+ hatch run test --verbose
179
184
180
185
benchmark :
181
186
needs : [check-unix, check-windows]
You can’t perform that action at this time.
0 commit comments