Skip to content

Commit f54cc16

Browse files
committed
Test using different Python versions
1 parent f1b697d commit f54cc16

File tree

5 files changed

+111
-0
lines changed

5 files changed

+111
-0
lines changed
File renamed without changes.

.github/workflows/main_py311.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Testing PyGAD using PyTest
2+
3+
on:
4+
push:
5+
branches:
6+
- github-actions
7+
# - master
8+
9+
jobs:
10+
job_id_1:
11+
runs-on: ubuntu-latest
12+
name: PyTest Workflow Job
13+
14+
steps:
15+
- name: Checkout Pre-Built Action
16+
uses: actions/checkout@v3
17+
18+
- name: Setup Python 3.11
19+
uses: actions/setup-python@v4
20+
with:
21+
python-version: '3.11'
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+
32+
- name: Install PyTest
33+
run: pip install pytest
34+
35+
- name: Run the Tests by Calling PyTest
36+
run: |
37+
pytest
File renamed without changes.

.github/workflows/main_py38.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Testing PyGAD using PyTest
2+
3+
on:
4+
push:
5+
branches:
6+
- github-actions
7+
# - master
8+
9+
jobs:
10+
job_id_1:
11+
runs-on: ubuntu-latest
12+
name: PyTest Workflow Job
13+
14+
steps:
15+
- name: Checkout Pre-Built Action
16+
uses: actions/checkout@v3
17+
18+
- name: Setup Python 3.8
19+
uses: actions/setup-python@v4
20+
with:
21+
python-version: '3.8'
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+
32+
- name: Install PyTest
33+
run: pip install pytest
34+
35+
- name: Run the Tests by Calling PyTest
36+
run: |
37+
pytest

.github/workflows/main_py39.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Testing PyGAD using PyTest
2+
3+
on:
4+
push:
5+
branches:
6+
- github-actions
7+
# - master
8+
9+
jobs:
10+
job_id_1:
11+
runs-on: ubuntu-latest
12+
name: PyTest Workflow Job
13+
14+
steps:
15+
- name: Checkout Pre-Built Action
16+
uses: actions/checkout@v3
17+
18+
- name: Setup Python 3.9
19+
uses: actions/setup-python@v4
20+
with:
21+
python-version: '3.9'
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+
32+
- name: Install PyTest
33+
run: pip install pytest
34+
35+
- name: Run the Tests by Calling PyTest
36+
run: |
37+
pytest

0 commit comments

Comments
 (0)