From 5789a910800b271f303d4392e1188d6af1946ed4 Mon Sep 17 00:00:00 2001 From: David Brownell Date: Fri, 19 Jan 2024 10:02:40 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20[+build]=20Code=20coverage=20dur?= =?UTF-8?q?ing=20testing=20&=20conditional=20publish?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/actions/package/action.yml | 10 +++++++++- .github/actions/validate/action.yml | 2 +- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/actions/package/action.yml b/.github/actions/package/action.yml index 0a3aba2..1cce2e4 100644 --- a/.github/actions/package/action.yml +++ b/.github/actions/package/action.yml @@ -75,8 +75,16 @@ runs: name: "${{ inputs.operating_system }}; ${{ inputs.python_version }}" path: dist/ - - name: Publish + - uses: dorny/paths-filter@v2 if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} + id: has_code_changes + with: + filters: | + src: + - 'src/**' + + - name: Publish + if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' && steps.has_code_changes.outputs.src == 'true' }} shell: ${{ inputs.shell_name }} run: | ${{ inputs.source_command }} ${{ inputs.script_prefix }}Activate${{ inputs.script_extension }} diff --git a/.github/actions/validate/action.yml b/.github/actions/validate/action.yml index 8d39940..6b54339 100644 --- a/.github/actions/validate/action.yml +++ b/.github/actions/validate/action.yml @@ -69,4 +69,4 @@ runs: shell: ${{ inputs.shell_name }} run: | ${{ inputs.source_command }} ${{ inputs.script_prefix }}Activate${{ inputs.script_extension }} - python Build.py Test + python Build.py Test --code-coverage