Skip to content

Commit 7c1818e

Browse files
committed
fix: skip uploading code coverage on workflow_dispatch
1 parent 00664ad commit 7c1818e

2 files changed

Lines changed: 11 additions & 1 deletion

File tree

.github/workflows/deploy.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ jobs:
7070
needs: [setup]
7171
uses: ./.github/workflows/tests-pytest.yml
7272
# if: ${{ needs.setup.outputs.is_tag == 'true' }}
73+
with:
74+
parent_event: ${{ github.event_name }}
7375

7476
check-migrations-and-messages:
7577
needs: [setup]

.github/workflows/tests-pytest.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
name: Pytest
22

3-
on: [push, pull_request, workflow_call]
3+
on:
4+
push:
5+
pull_request:
6+
workflow_call:
7+
inputs:
8+
parent_event:
9+
type: string
10+
required: true
411

512
jobs:
613
pytest:
@@ -41,6 +48,7 @@ jobs:
4148
run: ./tests/pytest/run.sh
4249

4350
- name: Upload coverage report
51+
if: ${{ inputs.parent_event != 'workflow_dispatch' }}
4452
uses: actions/upload-artifact@v7
4553
with:
4654
name: coverage-report

0 commit comments

Comments
 (0)