Skip to content

Commit

Permalink
Try using pipx to build package
Browse files Browse the repository at this point in the history
  • Loading branch information
arjxn-py committed May 30, 2024
1 parent fab9c7d commit 23bed3a
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/build_package.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Publish
name: Build Package

on:
pull_request:
Expand All @@ -24,8 +24,15 @@ jobs:
with:
python-version: "3.10"

- name: Install build dependencies
run: pip install build
- name: Install pipx
run: python -m pip install --user pipx
- name: Ensure pipx binaries are on PATH
run: |
echo "::add-path::${HOME}/.local/bin"
python -m pipx ensurepath
- name: Install build using pipx
run: pipx install build

- name: Set BUILD_RAGNA_BASE environment variable
run: |
Expand All @@ -38,7 +45,7 @@ jobs:
- name: Build distribution
run: |
echo "Building package: ${{ matrix.package }}"
python -m build
pipx run build
- name: Verify package
run: |
Expand Down

0 comments on commit 23bed3a

Please sign in to comment.