[로또] 송채원 미션 제출합니다. #3
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |