Skip to content

[로또] 김지성 미션 제출합니다. #32

[로또] 김지성 미션 제출합니다.

[로또] 김지성 미션 제출합니다. #32

name: Check Logic Separation
on: pull_request
jobs:
check-logic-separation:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Ensure UI logic is only in src/lotto/main.py
run: |
if grep -E 'print\(|input\(' src/lotto/lotto.py; then
echo "❌ UI logic (print or input) should not be in src/lotto/lotto.py!"
exit 1
fi
# - name: Ensure core logic is only in src/lotto/lotto.py
# run: |
# if grep -E 'def ' src/lotto/main.py | grep -v 'main'; then
# echo "❌ Core logic (function definitions) should not be in src/lotto/main.py!"
# exit 1
# fi