Skip to content

Commit 6a123d9

Browse files
committed
Test Python 3.12 Beta
1 parent 151445f commit 6a123d9

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

.github/workflows/main_py312.yml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
11
name: PyGAD PyTest / Python 3.12
22

3+
# Cannot install packages in Python 3.12.
4+
# The reason is that we use setuptools to install the packages.
5+
# setuptools depends on distutils.
6+
# But Python 3.12 does not support distutils.
7+
# Let's wait until setuptools changes its dependencies.
8+
39
on:
410
push:
511
branches:
6-
- github-actions
12+
# - github-actions
713
# - master
814

915
jobs:
@@ -22,19 +28,12 @@ jobs:
2228

2329
- name: Build PyGAD from the Repository
2430
run: |
25-
# pip3 install distutils
26-
echo 'SETUPTOOLS_USE_DISTUTILS=stdlib'
27-
# sudo apt-get install python3-distutils
2831
python3 -m pip install --upgrade build
2932
python3 -m build
3033
31-
# pip3 install setuptools==58.2.0
32-
# python3.12 -m build --sdist --wheel
33-
3434
- name: Install PyGAD after Building the .whl File
3535
run: |
36-
# find ./dist/*.whl | xargs pip install
37-
find ./dist/*.whl | xargs python3.12 -m pip install
36+
find ./dist/*.whl | xargs pip install
3837
3938
- name: Install PyTest
4039
run: pip install pytest

0 commit comments

Comments
 (0)