File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -52,15 +52,26 @@ jobs:
5252 pip install --default-timeout=100 --no-cache-dir -r requirements.txt
5353
5454 if [ "${{ matrix.python-version }}" != "3.14" ] && [ "${{ matrix.python-version }}" != "3.8" ]; then
55+ # This block runs if the version IS NOT 3.14 or 3.8
5556 # Using a retry loop for large DL frameworks to handle transient network issues
57+ echo "Installing deep learning libraries."
5658 for i in {1..3}; do
5759 pip install --default-timeout=100 --no-cache-dir tensorflow && break || \
5860 (echo "Retry $i failed, waiting 10s..." && sleep 10)
5961 done
6062 pip install --upgrade keras
6163 pip install torch
64+ else
65+ # This block runs if the version IS 3.14 or 3.8
66+ echo "Skipping heavy deep learning libraries for Python ${{ matrix.python-version }}."
6267 fi
6368
69+ # Verify the core deep learning frameworks
70+ echo "Verifying installations..."
71+ python -c "import tensorflow; print('TensorFlow version:', tensorflow.__version__)" || echo "TensorFlow not installed"
72+ python -c "import keras; print('Keras version:', keras.__version__)" || echo "Keras not installed"
73+ python -c "import torch; print('PyTorch version:', torch.__version__)" || echo "PyTorch not installed"
74+
6475 # Build the PyGAD package distribution (generating .tar.gz and .whl files).
6576 # This ensures the package build process is valid on this Python version.
6677 - name : Build PyGAD
Original file line number Diff line number Diff line change @@ -13,9 +13,9 @@ version = "3.6.0"
1313description = " PyGAD: A Python Library for Building the Genetic Algorithm and Training Machine Learning Algoithms (Keras & PyTorch)."
1414readme = {file = " README.md" , content-type = " text/markdown" }
1515requires-python = " >=3"
16- # license = {file = "LICENSE"}
17- license = " BSD-3-Clause"
18- license-files = [" LICENSE" ]
16+ license = {file = " LICENSE" }
17+ # license = "BSD-3-Clause"
18+ # license-files = ["LICENSE"]
1919authors = [
2020 {name = " Ahmed Gad" , email = " ahmed.f.gad@gmail.com" },
2121]
You can’t perform that action at this time.
0 commit comments