Skip to content

Commit

Permalink
Fix workflow and bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
dwoz committed Sep 7, 2024
1 parent da0a14f commit dd8fa9f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 30 deletions.
39 changes: 11 additions & 28 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,6 @@ jobs:
with:
changed-files: ${{ needs.get-changed-files.outputs.changed-files }}

build-python-package:
name: Python Package
uses: ./.github/workflows/package-action.yml
if: always()
needs:
- pre-commit
with:
kind: "${{ inputs.kind }}"
cmd: "${{ inputs.package_command }}"

test:
name: Test
Expand All @@ -71,6 +62,16 @@ jobs:
with:
changed-files: ${{ needs.get-changed-files.outputs.changed-files }}

build-python-package:
name: Python Package
uses: ./.github/workflows/package-action.yml
needs:
- pre-commit
- test
with:
kind: "${{ inputs.kind }}"
cmd: "${{ inputs.package_command }}"

deploy-python-package:
name: Deploy Python Package
uses: ./.github/workflows/deploy-package-action.yml
Expand All @@ -80,24 +81,6 @@ jobs:
- test
- build-python-package

push-tag:
name: Push Version Tag
runs-on: ubuntu-latest
permissions:
contents: write
if: ${{ inputs.kind == 'release' && success() }}
needs:
- build-python-package
- deploy-python-package
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Push Tag
uses: rickstaa/action-create-tag@v1
with:
tag: "v${{ needs.build-python-package.outputs.version }}"
message: "Version ${{ needs.build-python-package.outputs.version }}"

create-release:
name: Create Github Release
runs-on: ubuntu-latest
Expand Down Expand Up @@ -131,7 +114,7 @@ jobs:
- pre-commit
- test
- deploy-python-package
- push-tag
- create-release
steps:
- name: Get workflow information
id: get-workflow-info
Expand Down
2 changes: 1 addition & 1 deletion src/ppbt/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
"""
from .common import environ, extract

__version__ = "0.1.2"
__version__ = "0.1.3"

ALL = ("environ", "extract")
1 change: 0 additions & 1 deletion src/ppbt/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,6 @@ def build_ppbt(branch=None, use_tempdir=True):
- Add patchelf to the toolchain's binaries
- Create a tarball to be included in the wheel
"""
return
cwd = pathlib.Path(os.getcwd())
root = pathlib.Path(os.environ.get("PWD", os.getcwd()))
build = root / "build"
Expand Down

0 comments on commit dd8fa9f

Please sign in to comment.