-
-
Notifications
You must be signed in to change notification settings - Fork 470
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #211 from ahmedfgad/github-actions
GitHub actions
- Loading branch information
Showing
1,995 changed files
with
1,663 additions
and
302 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Python 3.10 Testing PyGAD using PyTest | ||
name: PyGAD PyTest / Python 3.10 | ||
|
||
on: | ||
push: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Python 3.11 Testing PyGAD using PyTest | ||
name: PyGAD PyTest / Python 3.11 | ||
|
||
on: | ||
push: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: PyGAD PyTest / Python 3.12 | ||
|
||
# Cannot install packages in Python 3.12. | ||
# The reason is that we use pip for installing packages. | ||
# pip uses setuptools for the installation. | ||
# setuptools depends on distutils. | ||
# But Python 3.12 does not support distutils. | ||
# Let's wait until setuptools changes its dependencies. | ||
|
||
# on: | ||
# push: | ||
# branches: | ||
# - github-actions | ||
# - master | ||
on: 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.0-beta.2' | ||
|
||
- 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Python 3.7 Testing PyGAD using PyTest | ||
name: PyGAD PyTest / Python 3.7 | ||
|
||
on: | ||
push: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Python 3.8 Testing PyGAD using PyTest | ||
name: PyGAD PyTest / Python 3.8 | ||
|
||
on: | ||
push: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Python 3.9 Testing PyGAD using PyTest | ||
name: PyGAD PyTest / Python 3.9 | ||
|
||
on: | ||
push: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,11 @@ | ||
# GeneticAlgorithmPython | ||
|
||
Genetic algorithm implementation in Python | ||
|
||
This folder under the project has the code built in the tutorial titled [**Genetic Algorithm Implementation in Python**](https://www.linkedin.com/pulse/genetic-algorithm-implementation-python-ahmed-gad) which is available in these links: | ||
This folder has the code for the tutorial titled [**Genetic Algorithm Implementation in Python**](https://www.linkedin.com/pulse/genetic-algorithm-implementation-python-ahmed-gad) which is available at these links: | ||
|
||
* https://www.linkedin.com/pulse/genetic-algorithm-implementation-python-ahmed-gad | ||
* https://towardsdatascience.com/genetic-algorithm-implementation-in-python-5ab67bb124a6 | ||
* https://www.kdnuggets.com/2018/07/genetic-algorithm-implementation-python.html | ||
|
||
The `ga.py` file holds the implementation of the GA operations such as mutation and crossover. The other file gives an example of using the GA.py file. | ||
|
||
It is important to note that this project does not implement everything in GA and there are a wide number of variations to be applied. For example, this project uses decimal representation for the chromosome and the binary representations might be preferred for other problems. | ||
|
||
## For Contacting the Author | ||
The `ga.py` file has the implementation of the GA operations such as mutation and crossover. It is a primitive implementation of the genetic algorithm. The other file gives an example of using the ga.py file. | ||
|
||
* E-mail: [email protected] | ||
* [LinkedIn](https://www.linkedin.com/in/ahmedfgad) | ||
* [Amazon Author Page](https://amazon.com/author/ahmedgad) | ||
* [Paperspace](https://blog.paperspace.com/author/ahmed) | ||
* [Hearbeat](https://heartbeat.fritz.ai/@ahmedfgad) | ||
* [KDnuggets](https://kdnuggets.com/author/ahmed-gad) | ||
* [TowardsDataScience](https://towardsdatascience.com/@ahmedfgad) | ||
* [GitHub](https://github.com/ahmedfgad) | ||
It is important to note that this project does not implement everything in GA and there are a wide number of variations to be applied. For example, this project uses decimal representation for the chromosome and the binary representations might be preferred for other problems. Check [PyGAD](https://pygad.readthedocs.io/en) for extensive features. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.