-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (44 loc) · 1.59 KB
/
Copy pathci.yml
File metadata and controls
55 lines (44 loc) · 1.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: CI
on:
push:
pull_request:
permissions:
contents: read
jobs:
test:
runs-on: windows-latest
timeout-minutes: 15
strategy:
fail-fast: false
matrix:
# Alt sınır: README'de belirtilen en düşük sürüm.
# Üst sınır: geliştirmede kullanılan güncel sürüm.
python-version: ["3.11", "3.14"]
steps:
- name: Kaynak kodu al
uses: actions/checkout@v6
- name: Python ${{ matrix.python-version }} kur
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
cache: pip
- name: Bağımlılıkları kur
run: python -m pip install --disable-pip-version-check -r requirements.txt ruff==0.15.22
- name: Statik kod denetimini çalıştır
run: ruff check main.py core tests .github/scripts
- name: Python sözdizimini denetle
run: python -m compileall -q main.py core tests .github/scripts
- name: Otomatik testleri çalıştır
run: python -m unittest discover -s tests -v
# Setup dosyası ~30 MB; yanlışlıkla commit'lenirse depo kalıcı olarak şişer
- name: Büyük dosya commit'lenmediğini doğrula
shell: bash
run: |
limit=$((5 * 1024 * 1024))
oversized=$(git ls-files -z | xargs -0 -I{} find {} -size +${limit}c -print)
if [ -n "$oversized" ]; then
echo "5 MB üstü izlenen dosya bulundu:"
echo "$oversized" | xargs -I{} ls -lh {}
exit 1
fi
echo "İzlenen dosyaların tamamı 5 MB altında."