Skip to content

Commit 755c359

Browse files
committed
Add: test-case to validate the run is successful when there are no warnings/errors
1 parent 8885886 commit 755c359

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

.github/workflows/testing.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ on:
66
- master
77

88
jobs:
9-
run_action:
10-
name: Test run action
9+
run_action_warnings:
10+
name: Test run action (triggers warnings)
1111
runs-on: ubuntu-latest
1212
steps:
1313
- uses: actions/checkout@v1
@@ -17,6 +17,15 @@ jobs:
1717
only_warn: 1
1818
max_line_length: 90
1919

20+
run_action_valid:
21+
name: Test run action (valid)
22+
runs-on: ubuntu-latest
23+
steps:
24+
- uses: actions/checkout@v1
25+
- uses: ./
26+
with:
27+
path: example_valid
28+
2029
codespell:
2130
name: Check for spelling errors
2231
runs-on: ubuntu-latest

example_valid/example.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
def good_code():
2+
pass

0 commit comments

Comments
 (0)