Skip to content

Commit 1c6148a

Browse files
Update conda-publish.yml
1 parent 22b0c5b commit 1c6148a

1 file changed

Lines changed: 39 additions & 17 deletions

File tree

.github/workflows/conda-publish.yml

Lines changed: 39 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,14 @@ jobs:
2121
with:
2222
auto-activate-base: false
2323
python-version: "${{ matrix.python-version }}"
24-
channels: conda-forge,defaults
24+
channels: conda-forge,bilgi,defaults # 'bilgi' kanalı EKLENDİ
2525
channel-priority: strict
2626

2727
- name: Install Conda-Build and Conda-Verify
28-
run: conda install -n base conda-build -y
28+
run: |
29+
# 'bilgi' kanalını base'e ekle
30+
conda config --add channels bilgi
31+
conda install -n base conda-build conda-verify -y
2932
3033
- name: Build the package for Python ${{ matrix.python-version }}
3134
run: |
@@ -41,27 +44,43 @@ jobs:
4144
echo "Oluşturulan paket:"
4245
ls -l dist
4346
44-
- name: Create test environment and install dependencies
47+
- name: Create test environment with 'bilgi' channel
4548
run: |
46-
conda create -n test-env -y python=${{ matrix.python-version }} numpy kececinumbers pytest pytest-cov
49+
# Test ortamı için bilgi kanalı ile kececinumbers
50+
conda create -n test-env -y python=${{ matrix.python-version }} \
51+
numpy pytest pytest-cov \
52+
-c conda-forge -c bilgi # Kanal önceliği: bilgi önce
53+
54+
# kececinumbers ayrıca yükle (zorunlu dependency)
55+
conda install -n test-env -y kececinumbers -c bilgi
56+
57+
echo "Test ortamı paketleri:"
58+
conda list -n test-env | grep -E "(numpy|kececinumbers|pytest)"
4759
4860
- name: Run development tests
4961
run: |
50-
conda run -n test-env --no-capture-output python -m pytest tests/ --cov=kha256
62+
conda run -n test-env pytest tests/ --cov=kha256 --cov-report=term-missing
5163
5264
- name: Install and test the built package
5365
run: |
5466
PACKAGE_FILE=$(ls dist/*.conda | head -n 1)
67+
echo "Kurulan paket: $PACKAGE_FILE"
68+
5569
conda install -n test-env -y "$PACKAGE_FILE"
56-
conda run -n test-env --no-capture-output python -c "import kha256; print('Import successful for Python ${{ matrix.python-version }}!')"
70+
conda run -n test-env python -c "
71+
import kha256
72+
import kececinumbers # Dependency testi
73+
print('✅ Paket ve dependencies başarıyla yüklendi!')
74+
print(f'KHA-256 version: {kha256.__version__}')
75+
"
5776
58-
- name: Debug - List files in the workspace
77+
- name: Debug - Environment info
78+
if: failure()
5979
run: |
60-
echo "--- Current Working Directory ---"
61-
pwd
62-
echo "--- Recursive file listing ---"
63-
ls -R
64-
echo "--- End of file listing ---"
80+
echo "--- Test Environment Debug ---"
81+
conda info
82+
conda list -n test-env
83+
conda env export -n test-env
6584

6685
- name: Upload to Anaconda Cloud
6786
if: success()
@@ -71,19 +90,22 @@ jobs:
7190
PACKAGE_FILES=$(find dist -name "*.conda")
7291
7392
if [ -z "$PACKAGE_FILES" ]; then
74-
echo "HATA: Yüklenecek .conda dosyası bulunamadı!"
93+
echo "HATA: Yüklenecek .conda dosyası yok!"
7594
exit 1
7695
fi
7796
7897
echo "Yüklenecek paketler:"
7998
echo "$PACKAGE_FILES"
8099
81100
conda install -n base -y anaconda-client
82-
conda run -n base anaconda -t $ANACONDA_TOKEN upload \
101+
anaconda -t $ANACONDA_TOKEN upload \
83102
$PACKAGE_FILES \
84103
--label main \
85-
--skip-existing
104+
--skip-existing \
105+
--force
86106
87-
- name: Cleanup test environment
107+
- name: Cleanup
88108
if: always()
89-
run: conda env remove -n test-env || true
109+
run: |
110+
conda env remove -n test-env || true
111+
rm -rf dist/

0 commit comments

Comments
 (0)