-
-
Notifications
You must be signed in to change notification settings - Fork 463
45 lines (36 loc) · 1.08 KB
/
main_py312.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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