Skip to content

Commit eb15c74

Browse files
committed
Skip coverage upload if tests skipped.
1 parent 3a29927 commit eb15c74

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/python_ci_linux.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,21 +101,26 @@ jobs:
101101
path: coverage
102102

103103
- name: Display structure of downloaded files
104+
id: show
104105
run: ls -R
105106
working-directory: coverage
107+
continue-on-error: true
106108

107109
- name: Combine Coverage 👷
110+
if: ${{ steps.show.outcome != 'failure' }}
108111
run: |
109112
shopt -s globstar
110113
python -m coverage combine coverage/**/.coverage
111114
112115
- name: "Upload Combined Coverage Artefact 🚀"
116+
if: ${{ steps.show.outcome != 'failure' }}
113117
uses: actions/upload-artifact@v2
114118
with:
115119
name: "combined-coverage"
116120
path: .coverage
117121

118122
- name: "Upload Combined Coverage to Coveralls"
123+
if: ${{ steps.show.outcome != 'failure' }}
119124
env:
120125
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
121126
run: |

0 commit comments

Comments
 (0)