From 8516f91e160a96e523ab23bf3f0b390abdb94f70 Mon Sep 17 00:00:00 2001 From: Carlos Date: Thu, 19 Sep 2024 15:02:01 -0700 Subject: [PATCH] test pypi workflow (#96) - updating test pypi workflow --- .../build_and_publish_to_test_pypi.yml | 20 ++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build_and_publish_to_test_pypi.yml b/.github/workflows/build_and_publish_to_test_pypi.yml index 2b4e7fe..3b79ea0 100644 --- a/.github/workflows/build_and_publish_to_test_pypi.yml +++ b/.github/workflows/build_and_publish_to_test_pypi.yml @@ -8,9 +8,27 @@ on: branches: [ main ] jobs: + check-source-changes: + runs-on: ubuntu-latest + outputs: + run_job: ${{ steps.changed-files.outputs.any_changed }} + steps: + - name: Checkout Sourcecode + uses: actions/checkout@v4 + + - name: Check for changes in setup.py/cfg + id: changed-files + uses: tj-actions/changed-files@v45.0.2 + with: + files: | + setup.py + setup.cfg + build-n-publish-test-pypi: - name: Build and Publish + name: Build and Publish To Test PyPi runs-on: ubuntu-latest + needs: check-source-changes + if: needs.check-source-changes.outputs.run_job == 'true' steps: - uses: actions/checkout@v4