Skip to content

Commit 99558b5

Browse files
ci: fix codacy worflow
1 parent 72afe86 commit 99558b5

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

‎.github/workflows/codacy.yml‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ permissions:
1313

1414
jobs:
1515
report-coverage-linux:
16-
if: github.repository == 'everoddandeven/monero-python' && (github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success')
16+
if: github.repository == 'everoddandeven/monero-python' && (github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion != 'cancelled')
1717
runs-on: ubuntu-latest
1818
steps:
1919
- name: Checkout code
@@ -22,27 +22,32 @@ jobs:
2222
fetch-depth: 0
2323

2424
- name: Download coverage report
25+
id: download
26+
continue-on-error: true
2527
uses: actions/download-artifact@v4
2628
with:
2729
name: coverage-reports-linux
2830
github-token: ${{ secrets.API_GITHUB }}
2931
run-id: ${{ github.event.workflow_run.id }}
3032

3133
- name: Report python coverage
34+
if: steps.download.outcome == 'success'
3235
uses: codacy/codacy-coverage-reporter-action@v1
3336
with:
3437
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
3538
language: python
3639
coverage-reports: coverage.xml
3740

3841
- name: Report c++ coverage
42+
if: steps.download.outcome == 'success'
3943
uses: codacy/codacy-coverage-reporter-action@v1
4044
with:
4145
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
4246
language: cpp
4347
coverage-reports: coverage.info
4448

4549
- name: Report c coverage
50+
if: steps.download.outcome == 'success'
4651
uses: codacy/codacy-coverage-reporter-action@v1
4752
with:
4853
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}

0 commit comments

Comments
 (0)