Skip to content

Commit

Permalink
Add lint error in malformed python project (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
eifinger authored Dec 8, 2024
1 parent efef6ba commit ec9ad44
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
17 changes: 14 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,16 +114,27 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use args
id: should-fail
- name: Format should fail
id: format-should-fail
continue-on-error: true
uses: ./
with:
args: format --check
src: __tests__/fixtures/malformed-python-project
- name: Check if the action failed
run: |
if [ ${{ steps.should-fail.outcome }} == "success" ]; then
if [ ${{ steps.format-should-fail.outcome }} == "success" ]; then
exit 1
fi
- name: Check should fail
id: check-should-fail
continue-on-error: true
uses: ./
with:
src: __tests__/fixtures/malformed-python-project
- name: Check if the action failed
run: |
if [ ${{ steps.check-should-fail.outcome }} == "success" ]; then
exit 1
fi
test-multiple-src:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
import sys

print("Hello world!")
print('How are you?')

0 comments on commit ec9ad44

Please sign in to comment.