From 285cc608732ab09bd23c8847fd0cdbc90caef8ea Mon Sep 17 00:00:00 2001 From: James Kwon <96548424+hongil0316@users.noreply.github.com> Date: Wed, 8 May 2024 18:12:07 -0400 Subject: [PATCH] Add sanity check after publishing new changes to homebrew tap (#38) * Add sanity check after publishing new changes to homebrew tap * Add installation check for PyPi * update on description --- .github/workflows/publish_package.yml | 31 ++++++++++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish_package.yml b/.github/workflows/publish_package.yml index 1079bc9..36d525e 100644 --- a/.github/workflows/publish_package.yml +++ b/.github/workflows/publish_package.yml @@ -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/ @@ -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 \ No newline at end of file