Skip to content

Commit 0f6c46a

Browse files
committed
Add Python 3.14 workflow
1 parent d729be4 commit 0f6c46a

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed

.github/workflows/main_py314.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: PyGAD PyTest / Python 3.14
2+
3+
permissions:
4+
contents: read
5+
6+
on:
7+
push:
8+
branches:
9+
- github-actions
10+
# - master
11+
# Manually trigger the workflow.
12+
workflow_dispatch:
13+
14+
jobs:
15+
job_id_1:
16+
runs-on: ubuntu-latest
17+
name: PyTest Workflow Job
18+
19+
steps:
20+
- name: Checkout Pre-Built Action
21+
uses: actions/checkout@v3
22+
23+
- name: Setup Python 3.14
24+
uses: actions/setup-python@v4
25+
with:
26+
python-version: '3.14'
27+
28+
- name: Install Dependencies
29+
run: |
30+
python -m pip install --upgrade pip
31+
pip install -r requirements.txt
32+
33+
- name: Build PyGAD from the Repository
34+
run: |
35+
python3 -m pip install --upgrade build
36+
python3 -m build
37+
38+
- name: Install PyGAD after Building the .whl File
39+
run: |
40+
find ./dist/*.whl | xargs pip install
41+
42+
- name: Install PyTest
43+
run: pip install pytest
44+
45+
- name: Run the Tests by Calling PyTest
46+
run: |
47+
pytest

0 commit comments

Comments
 (0)