Skip to content

[#0] make fail when pytest fails #7

[#0] make fail when pytest fails

[#0] make fail when pytest fails #7

Workflow file for this run

name: Check No Else Keyword
on:
push:
branches: [ '*' ]
pull_request:
branches: [ main ]
jobs:
check-no-else:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Ensure else is not used
run: |
if grep -r '\belse\b' src/; then
echo "❌ 'else' keyword is not allowed!"
exit 1
fi