Skip to content

Commit b3d55d2

Browse files
committed
Build and install PyGAD in Actions Workflow
1 parent 36b7bc3 commit b3d55d2

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

.github/workflows/main.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,19 @@ jobs:
1919
uses: actions/setup-python@v4
2020
with:
2121
python-version: '3.10'
22-
22+
23+
- name: Build PyGAD from the Repository
24+
run: |
25+
python3 -m pip install --upgrade build
26+
python3 -m build
27+
28+
- name: Install PyGAD after Building the .whl File
29+
run: |
30+
find ./dist/*.whl | xargs pip install
31+
2332
- name: Install PyTest
2433
run: pip install pytest
2534

26-
- name: Call PyTest
35+
- name: Run the Tests by Calling PyTest
2736
run: |
2837
pytest

0 commit comments

Comments
 (0)