Skip to content
This repository was archived by the owner on Dec 11, 2024. It is now read-only.

Commit a01bcaf

Browse files
authored
Replace workflow_run with workflow_call (#25)
* remove workflow_run tests * add workflow_call tests * rename * added job dependency * avoid codecov comment
1 parent 0161af1 commit a01bcaf

3 files changed

Lines changed: 8 additions & 11 deletions

File tree

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
name: pre-commit-workflow-name
2-
run-name: pre-commit workflow run name
1+
name: code-quality-workflow-name
2+
run-name: code quality workflow run name
33
on:
44
pull_request:
55
branches:
@@ -34,3 +34,7 @@ jobs:
3434
uses: ./.github/actions/nox-sessions-action-identifier
3535
with:
3636
session-name-input-identifier: pre_commit
37+
unit-test-job-identifier:
38+
needs: pre-commit-job-identifier
39+
name: unit test job name
40+
uses: ./.github/workflows/test.yml

.github/workflows/test.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,13 @@
11
name: test-workflow-name
22
run-name: test workflow run name
33
on:
4+
workflow_call:
45
workflow_dispatch:
5-
workflow_run:
6-
workflows:
7-
- pre-commit-workflow-name
8-
types:
9-
- completed
106
defaults:
117
run:
128
shell: bash
139
jobs:
1410
test-job-identifier:
15-
if: ${{ github.event.workflow_run.conclusion == 'success' }}
1611
name: test job name
1712
strategy:
1813
fail-fast: false

codecov.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,4 @@ coverage:
77
target: 80%
88
ignore:
99
- "**/tests/*.py"
10-
comment:
11-
layout: "reach, flags"
12-
behavior: new
10+
comment: false

0 commit comments

Comments
 (0)