Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[pull] master from ahmedfgad:master #36

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 334 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
334 commits
Select commit Hold shift + click to select a range
44671f6
Use hatchling instead of setuptools
ahmedfgad Jun 20, 2023
95696c2
Use hatchling instead of setuptools
ahmedfgad Jun 20, 2023
921a290
Use hatchling instead of setuptools
ahmedfgad Jun 20, 2023
3761236
Use hatchling instead of setuptools
ahmedfgad Jun 20, 2023
56b1295
Test Python 3.12 Beta
ahmedfgad Jun 20, 2023
f410a14
Test Python 3.12 Beta
ahmedfgad Jun 20, 2023
925b2bb
Test Python 3.12 Beta
ahmedfgad Jun 20, 2023
983edf8
Test Python 3.12 Beta
ahmedfgad Jun 20, 2023
13a2cd0
Test Python 3.12 Beta
ahmedfgad Jun 20, 2023
151445f
Test Python 3.12 Beta
ahmedfgad Jun 20, 2023
6a123d9
Test Python 3.12 Beta
ahmedfgad Jun 20, 2023
0ae9133
Test Python 3.12 Beta
ahmedfgad Jun 20, 2023
c1cc1bc
Test Python 3.12 Beta
ahmedfgad Jun 20, 2023
abcc6f7
Migrate to Hatch
ahmedfgad Jun 20, 2023
767068f
Migrate to Hatch
ahmedfgad Jun 20, 2023
e151d4b
Migrate to Hatch
ahmedfgad Jun 20, 2023
00069e9
Restore changes
ahmedfgad Jun 20, 2023
e7f942c
Disable Python 3.12 tests
ahmedfgad Jun 20, 2023
e413018
Merge pull request #211 from ahmedfgad/github-actions
ahmedfgad Jun 20, 2023
e58005d
PyGAD 3.1.0 Release
ahmedfgad Jun 20, 2023
0ede7a2
Merge pull request #212 from ahmedfgad/master
ahmedfgad Jun 20, 2023
fd031d3
None precision for int dtypes
ahmedfgad Jun 22, 2023
d3b9ec0
Resue best solution fitness
ahmedfgad Jun 24, 2023
8a6970a
Remove print() statement
ahmedfgad Jun 24, 2023
c4aa825
Fitness func not called for idx 0
ahmedfgad Jun 29, 2023
4d9f4a0
add ga_instance.last_generation_fitness to pygad.rst
yasirroni Jul 1, 2023
86dfe6f
Merge pull request #216 from yasirroni/patch-1
ahmedfgad Jul 1, 2023
a3e1219
Regression examples
ahmedfgad Jul 6, 2023
17224db
Merge pull request #221 from ahmedfgad/github-actions
ahmedfgad Jul 14, 2023
b84d062
None solution index
ahmedfgad Aug 16, 2023
01cb71c
None solution index
ahmedfgad Aug 16, 2023
9d6d2f2
Merge pull request #226 from ahmedfgad/github-actions
ahmedfgad Aug 16, 2023
53e7c4e
Non-Dominant Sorting for NSGA-II
ahmedfgad Aug 23, 2023
473f1a3
Paper used PyGAD
ahmedfgad Aug 24, 2023
5bb342e
Merge pull request #227 from ahmedfgad/github-actions
ahmedfgad Aug 24, 2023
069f530
NSGA-II Crowding Distance
ahmedfgad Aug 24, 2023
cf4dc63
Update crowding distance
ahmedfgad Aug 30, 2023
d8461fa
Update crowding distance
ahmedfgad Aug 31, 2023
912a1d1
Update crowding distance
ahmedfgad Sep 2, 2023
0ea3674
Support of NSGA-II
ahmedfgad Sep 2, 2023
4ef8cd5
Support of NSGA-II
ahmedfgad Sep 3, 2023
3163d7f
Support of NSGA-II
ahmedfgad Sep 3, 2023
6aeb685
Support of NSGA-II
ahmedfgad Sep 4, 2023
a3dc00b
Support of NSGA-II
ahmedfgad Sep 4, 2023
cabfa6d
Support of NSGA-II
ahmedfgad Sep 6, 2023
613efcb
Support of NSGA-II
ahmedfgad Sep 6, 2023
3f71ec0
Support of NSGA-II
ahmedfgad Sep 6, 2023
84c879d
Update readme
ahmedfgad Sep 6, 2023
b7e3f7e
Update TOML file
ahmedfgad Sep 6, 2023
5122c64
Update docs
ahmedfgad Sep 6, 2023
21f4788
Update docs
ahmedfgad Sep 6, 2023
aab09bd
Run tests
ahmedfgad Sep 7, 2023
900df55
Replace format() str method by f-string
ahmedfgad Sep 7, 2023
47c6298
Replace format() str method by f-string
ahmedfgad Sep 7, 2023
5e9a5f1
Replace format() str method by f-string
ahmedfgad Sep 7, 2023
655fd15
Replace format() str method by f-string
ahmedfgad Sep 7, 2023
8cbb307
Update docs and NSGA edits
ahmedfgad Sep 7, 2023
fedac6b
Update docs
ahmedfgad Sep 7, 2023
d6890c5
Update docs
ahmedfgad Sep 8, 2023
d50f118
Remove NSGA-II temp files
ahmedfgad Sep 8, 2023
759ed4e
Merge pull request #230 from ahmedfgad/github-actions
ahmedfgad Sep 8, 2023
aa9b2b0
Merge pull request #231 from ahmedfgad/master
ahmedfgad Sep 8, 2023
1f067d1
Update release date
ahmedfgad Sep 8, 2023
eca2f56
Merge pull request #232 from ahmedfgad/github-actions
ahmedfgad Sep 8, 2023
03f509f
Fix a bug
ahmedfgad Oct 14, 2023
288b5e8
Fix check for undefined pop fitness when using parallel processing
MBradbury Oct 18, 2023
263cb49
Merge pull request #237 from MBradbury/undefined-fitness-check
ahmedfgad Nov 2, 2023
6429acc
Merge branch 'github-actions' into master
ahmedfgad Nov 2, 2023
7fda9da
Merge pull request #239 from ahmedfgad/master
ahmedfgad Nov 2, 2023
b0051f8
Add files via upload
ahmedfgad Nov 2, 2023
9137dd4
Merge pull request #240 from ahmedfgad/github-actions
ahmedfgad Nov 2, 2023
210c345
Testing stop_criteria
ahmedfgad Nov 2, 2023
adf7758
Merge pull request #241 from ahmedfgad/github-actions
ahmedfgad Nov 2, 2023
7d51c8b
fix format string typo in README
urselrod Nov 6, 2023
2865a2c
More tests for NSGA-II
ahmedfgad Nov 6, 2023
f7b8bd3
Adaptive mutation bug fix & more tests
ahmedfgad Nov 6, 2023
20fc0f8
More tests
ahmedfgad Nov 6, 2023
d17fe6a
Bug fix
ahmedfgad Nov 6, 2023
c4769bb
Bug fix
ahmedfgad Nov 6, 2023
cd57312
Merge pull request #244 from ahmedfgad/github-actions
ahmedfgad Nov 6, 2023
6073550
Merge pull request #245 from ahmedfgad/master
ahmedfgad Nov 6, 2023
9436fbc
Bug fix
ahmedfgad Nov 6, 2023
1a46581
Bug fix
ahmedfgad Nov 6, 2023
c587ef5
Bug fix
ahmedfgad Nov 6, 2023
61ab66a
Merge pull request #246 from ahmedfgad/github-actions
ahmedfgad Nov 6, 2023
1ddbeb0
Merge pull request #243 from urselrod/master
ahmedfgad Nov 7, 2023
9610738
Merge pull request #247 from ahmedfgad/master
ahmedfgad Nov 7, 2023
c4b1378
Test parallel processing
ahmedfgad Nov 7, 2023
0f26588
Test parallel processing
ahmedfgad Nov 7, 2023
58b0b52
Edit comment
ahmedfgad Nov 8, 2023
99fd037
Deprecate delay_after_gen parameter
ahmedfgad Nov 8, 2023
28fa28e
Test fitness batch calculation
ahmedfgad Nov 8, 2023
c2af4da
Test save solutions
ahmedfgad Nov 8, 2023
a32eed8
Edit warning message
ahmedfgad Nov 8, 2023
63f6f88
Parallel processing with adaptive mutation
ahmedfgad Nov 8, 2023
d6c9d0e
Format tests
ahmedfgad Nov 8, 2023
cd15446
Format tests
ahmedfgad Nov 8, 2023
02e8f9d
Format tests
ahmedfgad Nov 8, 2023
d858681
Merge pull request #248 from ahmedfgad/github-actions
ahmedfgad Nov 8, 2023
3bcc0dd
Example to change pop size at runtime
ahmedfgad Nov 10, 2023
74a1375
Merge pull request #249 from ahmedfgad/github-actions
ahmedfgad Nov 10, 2023
19e13e8
typos
rsomers1998 Nov 29, 2023
1fecde0
docs: correct context on "multi-objective"
divineforge Dec 2, 2023
c4b17f9
docs: edit pygad.rst
divineforge Dec 10, 2023
e54e5e8
Merge pull request #254 from divineforge/patch-1
ahmedfgad Jan 27, 2024
d5dac0c
Merge pull request #253 from rsomers1998/master
ahmedfgad Jan 27, 2024
fb67d8d
Fix typos
ahmedfgad Jan 27, 2024
7748e2e
mutation using dict gene_space
ahmedfgad Jan 27, 2024
08c0840
Change versions
ahmedfgad Jan 27, 2024
d062234
Support object data type
ahmedfgad Jan 28, 2024
e946f04
Merge pull request #197 from apapadoi/apapadoi_bug_typo
ahmedfgad Jan 28, 2024
1615baf
Use raise instead of sys.exit
ahmedfgad Jan 28, 2024
f83c973
PyGAD 3.3.0
ahmedfgad Jan 29, 2024
b3183c2
Merge branch 'master' into github-actions
ahmedfgad Jan 29, 2024
fe5b002
Merge pull request #265 from ahmedfgad/github-actions
ahmedfgad Jan 29, 2024
ee434cb
Merge pull request #266 from ahmedfgad/master
ahmedfgad Jan 29, 2024
fc842aa
Update docs index
ahmedfgad Jan 29, 2024
de8d5be
Merge branch 'github-actions' of https://github.com/ahmedfgad/Genetic…
ahmedfgad Jan 29, 2024
a763121
Update and rename docs/source/conf.py to docs/conf.py
ahmedfgad Jan 29, 2024
1b6ae57
Update and rename docs/conf.py to docs/source/conf.py
ahmedfgad Jan 29, 2024
e102237
Config file for readthedocs
ahmedfgad Jan 29, 2024
b624d1b
Merge pull request #267 from ahmedfgad/github-actions
ahmedfgad Jan 29, 2024
9beedfb
Config file for readthedocs
ahmedfgad Jan 29, 2024
16c27a4
Merge pull request #268 from ahmedfgad/github-actions
ahmedfgad Jan 29, 2024
cc35360
Config file for readthedocs
ahmedfgad Jan 29, 2024
d76c60f
Merge pull request #269 from ahmedfgad/github-actions
ahmedfgad Jan 29, 2024
8fbae2d
Fix link
ahmedfgad Jan 31, 2024
30de970
Update citation to journal paper
ahmedfgad Feb 2, 2024
98b187b
Merge pull request #272 from ahmedfgad/github-actions
ahmedfgad Feb 2, 2024
128db80
Add badges
ahmedfgad Feb 4, 2024
fff04c6
Merge pull request #274 from ahmedfgad/github-actions
ahmedfgad Feb 4, 2024
eae41c0
PyGAD 3.3.1
ahmedfgad Feb 17, 2024
990f1a1
PyGAD 3.3.1
ahmedfgad Feb 17, 2024
b869247
Merge pull request #276 from ahmedfgad/github-actions
ahmedfgad Feb 17, 2024
d376bf5
Merge pull request #277 from ahmedfgad/master
ahmedfgad Feb 17, 2024
b7dc47e
Merge pull request #278 from ahmedfgad/github-actions
ahmedfgad Feb 17, 2024
51c1bca
Change parameter name
ahmedfgad Feb 19, 2024
0734736
Merge branch 'github-actions' of https://github.com/ahmedfgad/Genetic…
ahmedfgad Feb 19, 2024
298a757
Improvement on memory usage
ver0z Mar 12, 2024
2daae49
Fix warning
ahmedfgad Mar 27, 2024
8024132
Merge pull request #282 from ver0z/master
ahmedfgad Mar 27, 2024
a846a26
Fix adaptive mutation desc
ahmedfgad Mar 28, 2024
4eba80b
Reduce time of single point crossover
ahmedfgad Mar 28, 2024
8bbc4c8
Reduce time of crossover functions
ahmedfgad Mar 28, 2024
f98f0c9
Fix a typo in example_custom_operators
madprog Apr 13, 2024
272aaa5
Merge pull request #285 from madprog/fix_example_custom_operators
ahmedfgad Apr 14, 2024
0e8be9d
Merge pull request #286 from ahmedfgad/github-actions
ahmedfgad Apr 14, 2024
c16cdcc
Merge pull request #287 from ahmedfgad/master
ahmedfgad Apr 14, 2024
fb6cdc4
Filter parent selection type
ahmedfgad Aug 22, 2024
9ffa344
Fix Typo
ahmedfgad Sep 7, 2024
e17b999
No gradients before torch predictions
ahmedfgad Sep 21, 2024
d51b4d8
Clean code
ahmedfgad Dec 6, 2024
aa49af7
Refine comment
ahmedfgad Dec 7, 2024
93337d2
Edit documentation string
ahmedfgad Dec 8, 2024
7f292ca
Edit documentation string
ahmedfgad Dec 8, 2024
a13953b
Clean the code
ahmedfgad Dec 8, 2024
f492bb3
Replace gene_idx by space_idx
ahmedfgad Dec 8, 2024
c6949e1
Refactor code to remove duplicate sections
ahmedfgad Dec 8, 2024
b760c3e
Fix a bug
ahmedfgad Dec 8, 2024
01eee85
Return first element of numpy.random.choice()
ahmedfgad Dec 9, 2024
689a69a
Merge pull request #305 from ahmedfgad/github-actions
ahmedfgad Dec 9, 2024
516ac20
Read the requirements from the .txt file
ahmedfgad Dec 9, 2024
1a0c67f
Read the requirements from the .txt file
ahmedfgad Dec 9, 2024
138333a
Hardcode the requirements
ahmedfgad Dec 9, 2024
2aa059d
Install the requirements in GitHub actions
ahmedfgad Dec 9, 2024
9910cbd
Create scorecard.yml
ahmedfgad Dec 10, 2024
fca6058
Reformat docstring
ahmedfgad Dec 10, 2024
a9d09b4
Add OSSF and StackOverFlow badges
ahmedfgad Dec 10, 2024
1b52346
Merge pull request #306 from ahmedfgad/github-actions
ahmedfgad Dec 10, 2024
a4897fd
Merge pull request #307 from ahmedfgad/master
ahmedfgad Dec 10, 2024
bb26d3c
Add spaces between badges
ahmedfgad Dec 10, 2024
55776d2
Add Conda downloads badge
ahmedfgad Dec 10, 2024
a49d908
Add paper DOI badge
ahmedfgad Dec 10, 2024
952ab4d
Merge pull request #308 from ahmedfgad/github-actions
ahmedfgad Dec 10, 2024
2781299
Add Conda downloads badge
ahmedfgad Dec 10, 2024
67ff07f
Add paper DOI badge
ahmedfgad Dec 12, 2024
9eeaa8d
Merge pull request #309 from ahmedfgad/github-actions
ahmedfgad Dec 12, 2024
82fa0f8
Create the plot_pareto_front_curve() method to plot the pareto front …
ahmedfgad Jan 7, 2025
dd07de9
Merge pull request #310 from ahmedfgad/github-actions
ahmedfgad Jan 7, 2025
84559ce
Document the plot_pareto_front_curve() method.
ahmedfgad Jan 7, 2025
58a2ecb
Remove the delay_after_gen parameter
ahmedfgad Jan 7, 2025
13e5713
Update previous_generation_fitness once GA completes
ahmedfgad Jan 7, 2025
bd4fd60
Merge pull request #311 from ahmedfgad/github-actions
ahmedfgad Jan 7, 2025
39841ba
PyGAD 3.4.0
ahmedfgad Jan 7, 2025
e97b18b
Merge pull request #312 from ahmedfgad/github-actions
ahmedfgad Jan 7, 2025
fd0e18f
Fix bugs with stop_criteria
ahmedfgad Feb 6, 2025
22b579f
Call get_matplotlib()
ahmedfgad Feb 6, 2025
6a5ef12
Link to optimization gadget
ahmedfgad Mar 8, 2025
822ac90
Merge pull request #317 from ahmedfgad/github-actions
ahmedfgad Mar 8, 2025
a8cf03a
Update cnn.py
ekn1503 Apr 25, 2025
4f35bd0
Optimize float unique gene
ahmedfgad Jun 23, 2025
2ba9c3b
Rename variable
ahmedfgad Jun 23, 2025
1070ae7
Use Ubuntu latest for Py3.7 workflow
ahmedfgad Jun 23, 2025
f11b0ad
Refactor the code
Jun 26, 2025
4d17438
Refactor the code
Jun 26, 2025
44a9070
Refactor the code
Jun 26, 2025
33f443e
Merge pull request #324 from ahmedfgad/master
ahmedfgad Jun 26, 2025
8888546
Merge pull request #325 from ahmedfgad/github-actions
ahmedfgad Jun 26, 2025
d06837b
Generate constrained random values
ahmedfgad Jun 29, 2025
f0b1f07
Generate constrained random values
ahmedfgad Jun 29, 2025
c2dc95a
Use Python 3.13 and remove Python 3.7 workflow
ahmedfgad Jun 29, 2025
a6d8456
Allow manually triggering the workflows
ahmedfgad Jun 29, 2025
e346488
Change Python 3.12 version
ahmedfgad Jun 29, 2025
01a614b
Remove comments
ahmedfgad Jun 29, 2025
1305536
Apply constraints in initial population
ahmedfgad Jun 29, 2025
c5d35dc
Apply constraints with duplicates
ahmedfgad Jul 1, 2025
6a3b58b
Apply constraints on gene space
Jul 3, 2025
4073ffc
Clean repo
ahmedfgad Jul 3, 2025
47b33dd
Initialize population with gene constraints
Jul 3, 2025
468d36a
Resolve conflicts
Jul 3, 2025
2c6c6d8
Optimize code
ahmedfgad Jul 4, 2025
901d7e1
More tests
Jul 5, 2025
3ba005f
Fix selecting a unique value from gene space
Jul 5, 2025
ce702a9
Fix selecting a unique value from gene space
Jul 5, 2025
102e1fd
Fix selecting a unique value from gene space
Jul 5, 2025
dede266
Fix selecting a unique value from gene space
Jul 6, 2025
8a34063
Add sample_size parameter
Jul 6, 2025
cd7be47
Format docstrings
Jul 6, 2025
b3f31a1
Delete .DS_Store
ahmedfgad Jul 6, 2025
62ddc34
Delete pygad/.DS_Store
ahmedfgad Jul 6, 2025
f3d73db
Delete pygad/utils/.DS_Store
ahmedfgad Jul 6, 2025
e4a4e44
Delete pygad/helper/.DS_Store
ahmedfgad Jul 6, 2025
9c3d858
Delete pygad/visualize/.DS_Store
ahmedfgad Jul 6, 2025
a4a2eaa
Delete pygad/visualize/__pycache__ directory
ahmedfgad Jul 6, 2025
e6ba8e1
Merge pull request #326 from ahmedfgad/github-actions
ahmedfgad Jul 6, 2025
8b245e6
Accept gene values in gene_constraint callables
Jul 7, 2025
69c817d
Accept gene values in gene_constraint callables
Jul 7, 2025
079475f
Delete docs/.DS_Store
ahmedfgad Jul 7, 2025
f5ecabb
Edit gene_constraint callables
Jul 7, 2025
086e1f4
Delete .DS_Store
ahmedfgad Jul 7, 2025
b9e0449
Delete pygad/.DS_Store
ahmedfgad Jul 7, 2025
b93881a
Delete pygad/visualize/.DS_Store
ahmedfgad Jul 7, 2025
a2c4a10
Delete pygad/utils/.DS_Store
ahmedfgad Jul 7, 2025
83a5dc8
Delete pygad/helper/.DS_Store
ahmedfgad Jul 7, 2025
39d8d29
Edit version and docs
Jul 7, 2025
1de7028
Delete pygad/visualize/.DS_Store
ahmedfgad Jul 7, 2025
09b7300
Merge pull request #327 from ahmedfgad/github-actions
ahmedfgad Jul 7, 2025
a2231eb
Edit PyGAD 3.5.0 documentation
ahmedfgad Jul 7, 2025
16b5a85
Merge pull request #319 from ekn1503/patch-1
ahmedfgad Jul 7, 2025
19d6bb0
Merge pull request #328 from ahmedfgad/github-actions
ahmedfgad Jul 7, 2025
c4e1164
Merge pull request #329 from ahmedfgad/master
ahmedfgad Jul 7, 2025
7e068dd
fix: best_solution for multi-objective optimization
Crylab Jul 7, 2025
b2ac512
fix: keep original code + fix for multi-objective optimization
Crylab Jul 8, 2025
3c7ed23
Solve a bug in NSGA2 tournament selection of parents
Jul 8, 2025
9ac72f6
Clean repo
ahmedfgad Jul 9, 2025
a5ef680
Merge pull request #331 from Crylab/master
ahmedfgad Jul 9, 2025
eccdc6c
Merge pull request #332 from ahmedfgad/master
ahmedfgad Jul 9, 2025
83f0bed
Merge pull request #333 from ahmedfgad/github-actions
ahmedfgad Jul 9, 2025
19250a9
Getting PyGAD 3.5.0 Ready
ahmedfgad Jul 9, 2025
9ac7527
Merge pull request #334 from ahmedfgad/github-actions
ahmedfgad Jul 9, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
44 changes: 44 additions & 0 deletions .github/workflows/main_py310.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: PyGAD PyTest / Python 3.10

on:
push:
branches:
- github-actions
# - master
# Manually trigger the workflow.
workflow_dispatch:

jobs:
job_id_1:
runs-on: ubuntu-latest
name: PyTest Workflow Job

steps:
- name: Checkout Pre-Built Action
uses: actions/checkout@v3

- name: Setup Python 3.10
uses: actions/setup-python@v4
with:
python-version: '3.10'

- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt

- name: Build PyGAD from the Repository
run: |
python3 -m pip install --upgrade build
python3 -m build

- name: Install PyGAD after Building the .whl File
run: |
find ./dist/*.whl | xargs pip install

- name: Install PyTest
run: pip install pytest

- name: Run the Tests by Calling PyTest
run: |
pytest
44 changes: 44 additions & 0 deletions .github/workflows/main_py311.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: PyGAD PyTest / Python 3.11

on:
push:
branches:
- github-actions
# - master
# Manually trigger the workflow.
workflow_dispatch:

jobs:
job_id_1:
runs-on: ubuntu-latest
name: PyTest Workflow Job

steps:
- name: Checkout Pre-Built Action
uses: actions/checkout@v3

- name: Setup Python 3.11
uses: actions/setup-python@v4
with:
python-version: '3.11'

- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt

- name: Build PyGAD from the Repository
run: |
python3 -m pip install --upgrade build
python3 -m build

- name: Install PyGAD after Building the .whl File
run: |
find ./dist/*.whl | xargs pip install

- name: Install PyTest
run: pip install pytest

- name: Run the Tests by Calling PyTest
run: |
pytest
44 changes: 44 additions & 0 deletions .github/workflows/main_py312.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: PyGAD PyTest / Python 3.12

on:
push:
branches:
- github-actions
# - master
# Manually trigger the workflow.
workflow_dispatch:

jobs:
job_id_1:
runs-on: ubuntu-latest
name: PyTest Workflow Job

steps:
- name: Checkout Pre-Built Action
uses: actions/checkout@v3

- name: Setup Python 3.12
uses: actions/setup-python@v4
with:
python-version: '3.12'

- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt

- name: Build PyGAD from the Repository
run: |
python3 -m pip install --upgrade build
python3 -m build

- name: Install PyGAD after Building the .whl File
run: |
find ./dist/*.whl | xargs pip install

- name: Install PyTest
run: pip install pytest

- name: Run the Tests by Calling PyTest
run: |
pytest
44 changes: 44 additions & 0 deletions .github/workflows/main_py313.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: PyGAD PyTest / Python 3.13

on:
push:
branches:
- github-actions
# - master
# Manually trigger the workflow.
workflow_dispatch:

jobs:
job_id_1:
runs-on: ubuntu-latest
name: PyTest Workflow Job

steps:
- name: Checkout Pre-Built Action
uses: actions/checkout@v3

- name: Setup Python 3.13
uses: actions/setup-python@v4
with:
python-version: '3.13'

- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt

- name: Build PyGAD from the Repository
run: |
python3 -m pip install --upgrade build
python3 -m build

- name: Install PyGAD after Building the .whl File
run: |
find ./dist/*.whl | xargs pip install

- name: Install PyTest
run: pip install pytest

- name: Run the Tests by Calling PyTest
run: |
pytest
44 changes: 44 additions & 0 deletions .github/workflows/main_py38.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: PyGAD PyTest / Python 3.8

on:
push:
branches:
- github-actions
# - master
# Manually trigger the workflow.
workflow_dispatch:

jobs:
job_id_1:
runs-on: ubuntu-latest
name: PyTest Workflow Job

steps:
- name: Checkout Pre-Built Action
uses: actions/checkout@v3

- name: Setup Python 3.8
uses: actions/setup-python@v4
with:
python-version: '3.8'

- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt

- name: Build PyGAD from the Repository
run: |
python3 -m pip install --upgrade build
python3 -m build

- name: Install PyGAD after Building the .whl File
run: |
find ./dist/*.whl | xargs pip install

- name: Install PyTest
run: pip install pytest

- name: Run the Tests by Calling PyTest
run: |
pytest
44 changes: 44 additions & 0 deletions .github/workflows/main_py39.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: PyGAD PyTest / Python 3.9

on:
push:
branches:
- github-actions
# - master
# Manually trigger the workflow.
workflow_dispatch:

jobs:
job_id_1:
runs-on: ubuntu-latest
name: PyTest Workflow Job

steps:
- name: Checkout Pre-Built Action
uses: actions/checkout@v3

- name: Setup Python 3.9
uses: actions/setup-python@v4
with:
python-version: '3.9'

- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt

- name: Build PyGAD from the Repository
run: |
python3 -m pip install --upgrade build
python3 -m build

- name: Install PyGAD after Building the .whl File
run: |
find ./dist/*.whl | xargs pip install

- name: Install PyTest
run: pip install pytest

- name: Run the Tests by Calling PyTest
run: |
pytest
73 changes: 73 additions & 0 deletions .github/workflows/scorecard.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
# This workflow uses actions that are not certified by GitHub. They are provided
# by a third-party and are governed by separate terms of service, privacy
# policy, and support documentation.

name: Scorecard supply-chain security
on:
# For Branch-Protection check. Only the default branch is supported. See
# https://github.com/ossf/scorecard/blob/main/docs/checks.md#branch-protection
branch_protection_rule:
# To guarantee Maintained check is occasionally updated. See
# https://github.com/ossf/scorecard/blob/main/docs/checks.md#maintained
schedule:
- cron: '42 5 * * 2'
push:
branches: [ "master" ]

# Declare default permissions as read only.
permissions: read-all

jobs:
analysis:
name: Scorecard analysis
runs-on: ubuntu-latest
permissions:
# Needed to upload the results to code-scanning dashboard.
security-events: write
# Needed to publish results and get a badge (see publish_results below).
id-token: write
# Uncomment the permissions below if installing in a private repository.
# contents: read
# actions: read

steps:
- name: "Checkout code"
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
persist-credentials: false

- name: "Run analysis"
uses: ossf/scorecard-action@0864cf19026789058feabb7e87baa5f140aac736 # v2.3.1
with:
results_file: results.sarif
results_format: sarif
# (Optional) "write" PAT token. Uncomment the `repo_token` line below if:
# - you want to enable the Branch-Protection check on a *public* repository, or
# - you are installing Scorecard on a *private* repository
# To create the PAT, follow the steps in https://github.com/ossf/scorecard-action?tab=readme-ov-file#authentication-with-fine-grained-pat-optional.
# repo_token: ${{ secrets.SCORECARD_TOKEN }}

# Public repositories:
# - Publish results to OpenSSF REST API for easy access by consumers
# - Allows the repository to include the Scorecard badge.
# - See https://github.com/ossf/scorecard-action#publishing-results.
# For private repositories:
# - `publish_results` will always be set to `false`, regardless
# of the value entered here.
publish_results: true

# Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF
# format to the repository Actions tab.
- name: "Upload artifact"
uses: actions/upload-artifact@97a0fba1372883ab732affbe8f94b823f91727db # v3.pre.node20
with:
name: SARIF file
path: results.sarif
retention-days: 5

# Upload the results to GitHub's code scanning dashboard (optional).
# Commenting out will disable upload of results to your repo's Code Scanning dashboard
- name: "Upload to code-scanning"
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: results.sarif
35 changes: 35 additions & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Read the Docs configuration file for Sphinx projects
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details

# Required
version: 2

# Set the OS, Python version and other tools you might need
build:
os: ubuntu-22.04
tools:
python: "3.12"
# You can also specify other tool versions:
# nodejs: "20"
# rust: "1.70"
# golang: "1.20"

# Build documentation in the "docs/" directory with Sphinx
sphinx:
configuration: docs/source/conf.py
# You can configure Sphinx to use a different builder, for instance use the dirhtml builder for simpler URLs
# builder: "dirhtml"
# Fail on all warnings to avoid broken references
# fail_on_warning: true

# Optionally build your docs in additional formats such as PDF and ePub
formats:
- pdf
- epub

# Optional but recommended, declare the Python requirements required
# to build your documentation
# See https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html
# python:
# install:
# - requirements: docs/requirements.txt
Loading