@@ -16,42 +16,51 @@ jobs:
16
16
fail-fast : false # true
17
17
matrix :
18
18
os : ["ubuntu-latest", "macOS-latest", "windows-latest"]
19
- python-version : ["3.9", "3.10", "3.11"]
19
+ python-version : ["3.9", "3.10", "3.11", "3.12" ]
20
20
21
21
steps :
22
22
- name : Setup C/C++ Compiler
23
+ if : false == contains( matrix.os, 'windows')
23
24
id : install_cc
24
-
25
+ uses : rlalik/setup-cpp-compiler@master
26
+ with :
27
+ compiler : clang
28
+
29
+ - name : Install mingw-w64 on Windows
30
+ if : contains( matrix.os, 'windows')
31
+ uses : msys2/setup-msys2@v2
25
32
with :
26
- compiler : gcc # clang
33
+ path-type : inherit
34
+ install : |
35
+ mingw-w64-x86_64-gcc
27
36
28
37
- name : checkout repository
29
38
uses : actions/checkout@v4
30
39
40
+ - name : Set compilers
41
+ if : false == contains( matrix.os, 'windows')
42
+ run : |
43
+ echo "CC=${{ steps.install_cc.outputs.cc }}" >> $GITHUB_ENV
44
+ echo "CXX=${{ steps.install_cc.outputs.cxx }}" >> $GITHUB_ENV
45
+
31
46
- name : Set up Python ${{ matrix.python-version }}
32
- uses : actions/setup-python@v4
47
+ uses : actions/setup-python@v5
33
48
id : cp
34
49
with :
35
50
python-version : ${{ matrix.python-version }}
36
51
update-environment : true
37
-
38
- - name : Editable Pip Install pyFrame3DD
39
- env :
40
- CC : ' ${{ steps.install_cc.outputs.cc }}'
41
- CXX : ' ${{ steps.install_cc.outputs.cxx }}'
52
+
53
+ - name : Editable Pip Install pyFrame3DD (windows)
42
54
run : |
43
55
'${{ steps.cp.outputs.python-path }}' -m pip install --upgrade pip
44
56
'${{ steps.cp.outputs.python-path }}' -m pip install meson-python meson numpy ninja wheel
45
57
'${{ steps.cp.outputs.python-path }}' -m pip install --no-build-isolation -e .[test]
46
-
58
+
47
59
- name : Editable Test run
48
60
run : |
49
61
'${{ steps.cp.outputs.python-path }}' -m pytest test
50
62
51
63
- name : Pip Install pyFrame3DD
52
- env :
53
- CC : ' ${{ steps.install_cc.outputs.cc }}'
54
- CXX : ' ${{ steps.install_cc.outputs.cxx }}'
55
64
run : |
56
65
'${{ steps.cp.outputs.python-path }}' -m pip uninstall pyframe3dd
57
66
'${{ steps.cp.outputs.python-path }}' -m pip install -v .[test]
78
87
fail-fast : false # true
79
88
matrix :
80
89
os : ["ubuntu-latest", "macOS-latest", "windows-latest"]
81
- python-version : ["3.9", "3.10", "3.11"]
90
+ python-version : ["3.9", "3.10", "3.11", "3.12" ]
82
91
83
92
steps :
84
93
- name : checkout repository
0 commit comments