Skip to content

Commit

Permalink
👷 [+build] Code coverage during testing & conditional publish
Browse files Browse the repository at this point in the history
  • Loading branch information
davidbrownell committed Jan 19, 2024
1 parent 6955b3d commit 5789a91
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 9 additions & 1 deletion .github/actions/package/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/validate/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 5789a91

Please sign in to comment.