Skip to content

Commit

Permalink
fix: drop maturin checkout -> impl pipx + develop
Browse files Browse the repository at this point in the history
  • Loading branch information
alejandrogzi committed Aug 6, 2024
1 parent ec7ae6a commit 87fc993
Showing 1 changed file with 20 additions and 15 deletions.
35 changes: 20 additions & 15 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -158,24 +158,29 @@ jobs:
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Build wheels
uses: PyO3/maturin-action@v1

- name: Set up Rust
uses: actions-rs/toolchain@v1
with:
target: ${{ matrix.target }}
args: --release --features test --out dist --find-interpreter --manifest-path py-gtfsort/Cargo.toml
sccache: 'true'
manylinux: auto
toolchain: stable

- name: Install pipx
run: python -m pip install --user pipx && python -m pipx ensurepath

- name: Install built package
run: |
pip install gtfsortpy --no-index --find-links dist --force-reinstall
- name: Install dependencies
run: pipx install hatch maturin

- name: Upload wheels
uses: actions/upload-artifact@v3
with:
name: wheels
path: dist
- name: Create Hatch environment
shell: bash
run: cd py-gtfsort && hatch env create

- name: Activate Hatch env, build and run py test
shell: bash
run: |
cd py-gtfsort
source $(hatch env find)/bin/activate
maturin develop --release --manifest-path Cargo.toml --features test
hatch run test --verbose
benchmark:
needs: [check-unix, check-windows]
Expand Down

0 comments on commit 87fc993

Please sign in to comment.