Skip to content

Commit

Permalink
chore: add pipx integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
legendecas committed May 17, 2024
1 parent 8597203 commit eeedb0d
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/pipx.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: pipx integration
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:

jobs:
integration:
strategy:
fail-fast: false
matrix:
os: [macos-latest, ubuntu-latest]
python: ["3.8", "3.10", "3.12"]

runs-on: ${{ matrix.os }}
steps:
- name: Clone gyp-next
uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
allow-prereleases: true
- name: Setup dependencies
shell: bash
run: |
python3 -m pip install --user pipx build
- name: Build a binary wheel and a source tarball
run: python3 -m build
- name: Integration test with pipx
shell: bash
run: |
pipx run --no-cache --spec dist/gyp_next-*-py3-none-any.whl gyp --help
pipx run --no-cache --spec dist/gyp_next-*-py3-none-any.whl gyp --version

0 comments on commit eeedb0d

Please sign in to comment.