Skip to content

CI: testleri Windows'ta çalıştır - #1

Merged
emperorbug46 merged 2 commits into
mainfrom
claude/beautiful-babbage-tgdkz2
Oct 14, 2026
Merged

emperorbug46 merged 2 commits into
mainfrom
claude/beautiful-babbage-tgdkz2

Conversation

@emperorbug46

Copy link
Copy Markdown
Owner

Neden

Mevcut workflow Ubuntu + Python 3.10 ile çalışıyordu ve her seferinde başarısız oluyordu (ilk çalıştırma):

  • pytest hiç test bulamıyordu (collected 0 items, çıkış kodu 5). Testler pytest değil, düz betik ve adları test_*.py biçiminde değil.
  • Proje Windows'a özel (UI Automation, SendInput, winrt) ve Python 3.12 istiyor.
  • Bağımlılıklar hiç kurulmuyordu (requirements.txt yok).

Değişiklikler

  • windows-latest, Python sürümü .python-version'dan (3.12)
  • Bağımlılıklar uv.lock'tan: uv sync --locked
  • Girdi göndermeyen ve pencere açmayan iki test çalışıyor:
    • tests/birim.py: saf birim testleri
    • tests/mcp_istemci.py: sunucuyu stdio üzerinden PCGOZ_DRY_RUN=1 ile başlatıp MCP protokolüyle konuşuyor
  • Runner'ın klavye düzeni Türkçe Q yapılıyor. birim.py etkin düzeni kullanıyor ve ş ABD düzeninde olmadığı için o kontrol kalıyordu.
  • PYTHONUTF8=1: çıktı boruya gidince Python cp1252 kullanıyor, testler Türkçe karakter basıyor.
  • flake8 .venv klasörünü taramıyor.
  • workflow_dispatch: Actions sekmesinden elle çalıştırılabiliyor.
  • actions/checkout@v5, actions/setup-python@v6 (Node 20 kullanımdan kalktı uyarısı)

Gerçek fare/klavye kullanan veya uygulama açan testler (smoke.py, kapsam.py, kilit_canli.py, tus_probu.py, pano.py, agir_sayfa.py, ocr_olcum.py) CI'ya eklenmedi. Bunlar gerçek masaüstü istiyor.

Test

Bu dalda elle tetiklenen çalıştırma yeşil (çalıştırma):

  • birim.py: 149 geçti, 0 kaldı
  • mcp_istemci.py: 20 geçti, 0 kaldı

🤖 Generated with Claude Code

https://claude.ai/code/session_01FGB738s5cwaGS1RoaJBbpR


Generated by Claude Code

Eski workflow Ubuntu + Python 3.10 kullaniyordu ve pytest hic test
bulamadigi icin (collected 0 items, cikis kodu 5) her calismada
basarisiz oluyordu. Proje Windows'a ozel ve Python 3.12 istiyor;
testler pytest degil, duz betik.

- windows-latest, Python surumu .python-version'dan
- bagimliliklar uv.lock'tan (uv sync --locked)
- girdi gondermeyen testler: tests/birim.py ve tests/mcp_istemci.py
- PYTHONUTF8=1: boruya giden ciktida Turkce karakterler icin
- flake8 .venv'i taramasin
- elle tetikleme (workflow_dispatch)
- checkout v5 / setup-python v6 (Node 20 uyarisi)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FGB738s5cwaGS1RoaJBbpR
birim.py 'ş' karakterini etkin duzende ariyor; GitHub'in Windows
runner'i ABD duzeninde oldugu icin bu tek kontrol kaliyordu.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FGB738s5cwaGS1RoaJBbpR
@emperorbug46
emperorbug46 merged commit 062522f into main Oct 14, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants