Skip to content

Commit ce9ca2f

Browse files
Modify workflow to build docs and clean files
Updated Python setup action version and added documentation build and cleanup steps.
1 parent 4f78764 commit ce9ca2f

1 file changed

Lines changed: 15 additions & 1 deletion

File tree

.github/workflows/workflow.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
uses: actions/checkout@v6
1919

2020
- name: Set up Python
21-
uses: actions/setup-python@v6
21+
uses: actions/setup-python@v5
2222
with:
2323
python-version: '3.x'
2424

@@ -27,6 +27,20 @@ jobs:
2727
python -m pip install --upgrade pip
2828
pip install build
2929
30+
- name: Build docs
31+
run: |
32+
pip install -r docs/requirements.txt
33+
cd docs && make html
34+
35+
- name: Clean unnecessary files before build
36+
run: |
37+
echo "🧹 Gereksiz dosyalar temizleniyor..."
38+
find . -type d -name "__pycache__" -exec rm -rf {} + 2>/dev/null || true
39+
find . -name "*.pyc" -delete 2>/dev/null || true
40+
find . -name "*.pyo" -delete 2>/dev/null || true
41+
rm -rf build/ dist/ *.egg-info .pytest_cache .mypy_cache
42+
echo "✅ Temizlik tamamlandı"
43+
3044
- name: Build the package
3145
run: python -m build
3246

0 commit comments

Comments
 (0)