mirror of
https://github.com/astral-sh/ruff-action.git
synced 2026-05-22 06:40:47 +00:00
Add lint error in malformed python project (#25)
This commit is contained in:
committed by
GitHub
parent
efef6ba8fa
commit
ec9ad4417f
@@ -114,8 +114,8 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Use args
|
- name: Format should fail
|
||||||
id: should-fail
|
id: format-should-fail
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
uses: ./
|
uses: ./
|
||||||
with:
|
with:
|
||||||
@@ -123,7 +123,18 @@ jobs:
|
|||||||
src: __tests__/fixtures/malformed-python-project
|
src: __tests__/fixtures/malformed-python-project
|
||||||
- name: Check if the action failed
|
- name: Check if the action failed
|
||||||
run: |
|
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
|
exit 1
|
||||||
fi
|
fi
|
||||||
test-multiple-src:
|
test-multiple-src:
|
||||||
|
|||||||
+2
@@ -1,2 +1,4 @@
|
|||||||
|
import sys
|
||||||
|
|
||||||
print("Hello world!")
|
print("Hello world!")
|
||||||
print('How are you?')
|
print('How are you?')
|
||||||
|
|||||||
Reference in New Issue
Block a user