Skip to content

Commit

Permalink
Add sanity check after publishing new changes to homebrew tap (#38)
Browse files Browse the repository at this point in the history
* Add sanity check after publishing new changes to homebrew tap

* Add installation check for PyPi

* update on description
  • Loading branch information
james03160927 committed May 8, 2024
1 parent 653c6fa commit 285cc60
Showing 1 changed file with 30 additions and 1 deletion.
31 changes: 30 additions & 1 deletion .github/workflows/publish_package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ jobs:
run: |
sed -i "s/version = \".*\"/version = \"${{ env.VERSION }}\"/" pyproject.toml
- name: Build distribution
run: python -m build --sdist --wheel --outdir dist/

Expand All @@ -49,3 +48,33 @@ jobs:
Update comfy-cli to ${{ env.VERSION }}
Created by actions/bump-homebrew-formula-action
test-homebrew-installation:
name: Test Comfy CLI Installation via homebrew
needs: build-n-publish # This job runs after build-n-publish completes successfully
runs-on: macos-latest
steps:
- name: Tap comfy-cli homebrew tap repository
run: brew tap Comfy-Org/comfy-cli

- name: Install comfy-cli via homebrew
run: brew install comfy-org/comfy-cli/comfy-cli

- name: Test Comfy CLI Help
run: comfy --help

test-pip-installation:
name: Test Comfy CLI Installation via pip
needs: build-n-publish # This job runs after build-n-publish completes successfully
runs-on: ubuntu-latest
steps:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'

- name: Install Comfy CLI via pip
run: pip install comfy-cli

- name: Test Comfy CLI Help
run: comfy --help

0 comments on commit 285cc60

Please sign in to comment.