Skip to content

Commit 87fc993

Browse files
committed
fix: drop maturin checkout -> impl pipx + develop
1 parent ec7ae6a commit 87fc993

File tree

1 file changed

+20
-15
lines changed

1 file changed

+20
-15
lines changed

Diff for: .github/workflows/check.yml

+20-15
Original file line numberDiff line numberDiff line change
@@ -158,24 +158,29 @@ jobs:
158158
- uses: actions/setup-python@v4
159159
with:
160160
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
164164
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
169169

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
173172

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
179184
180185
benchmark:
181186
needs: [check-unix, check-windows]

0 commit comments

Comments
 (0)