From de8b0911a73a42248f228bae0fcf30666e228012 Mon Sep 17 00:00:00 2001 From: Chengzhong Wu Date: Fri, 17 May 2024 11:44:31 +0100 Subject: [PATCH] chore: add pipx integration test --- .github/workflows/pipx.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/pipx.yml diff --git a/.github/workflows/pipx.yml b/.github/workflows/pipx.yml new file mode 100644 index 0000000..760da43 --- /dev/null +++ b/.github/workflows/pipx.yml @@ -0,0 +1,33 @@ +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 + - name: Integration test with pipx + shell: bash + run: | + pipx run --no-cache --spec ./ gyp --help + pipx run --no-cache --spec ./ gyp --version