Skip to content
This repository was archived by the owner on Dec 19, 2025. It is now read-only.

Commit ae4877d

Browse files
committed
workflows: update workflows
1 parent 343dc02 commit ae4877d

2 files changed

Lines changed: 16 additions & 18 deletions

File tree

.github/workflows/linux-ci.yml

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: ubuntu-latest
1515
strategy:
1616
matrix:
17-
python-version: [3.7, 3.8, 3.9, 'pypy-3.6', 'pypy-3.7']
17+
python-version: [3.9, "3.10", 3.11, 3.12, 3.13]
1818
kokkos-branch: ['master', 'develop']
1919

2020
steps:
@@ -30,10 +30,9 @@ jobs:
3030
sudo apt-get update &&
3131
sudo apt-get install -y build-essential gcc g++ ninja-build &&
3232
python -m pip install --upgrade pip &&
33-
python -m pip install 'cmake==3.18.4'
33+
python -m pip install 'cmake==3.31.6'
3434

3535
- name: Install Kokkos
36-
if: ${{ matrix.python-version != 'pypy-3.6' && matrix.python-version != 'pypy-3.7' }}
3736
run:
3837
git clone -b ${{ matrix.kokkos-branch }} https://github.com/kokkos/kokkos.git /tmp/kokkos-source &&
3938
cmake -B /tmp/kokkos-build
@@ -82,7 +81,7 @@ jobs:
8281
runs-on: ubuntu-latest
8382
strategy:
8483
matrix:
85-
python-version: [3.7, 3.8, 3.9, 'pypy-3.6', 'pypy-3.7']
84+
python-version: [3.9, "3.10", 3.11, 3.12, 3.13]
8685
kokkos-branch: ['master']
8786

8887
steps:
@@ -98,16 +97,16 @@ jobs:
9897
sudo apt-get update &&
9998
sudo apt-get install -y build-essential gcc g++ ninja-build &&
10099
python -m pip install --upgrade pip &&
101-
python -m pip install 'cmake==3.18.4'
100+
python -m pip install 'cmake==3.31.6'
102101

103102
- name: Install Kokkos
104-
if: ${{ matrix.python-version != '3.8' && matrix.python-version != '3.9' }}
103+
if: ${{ matrix.python-version != '3.9' }}
105104
run:
106105
git clone -b ${{ matrix.kokkos-branch }} https://github.com/kokkos/kokkos.git /tmp/kokkos-source &&
107106
cmake -B /tmp/kokkos-build
108107
-DKokkos_ENABLE_SERIAL=ON
109108
-DKokkos_ENABLE_OPENMP=ON
110-
-DCMAKE_CXX_STANDARD=17
109+
-DCMAKE_CXX_STANDARD=20
111110
-DBUILD_SHARED_LIBS=ON
112111
/tmp/kokkos-source &&
113112
cmake --build /tmp/kokkos-build --target all --parallel 2 &&
@@ -144,7 +143,7 @@ jobs:
144143
runs-on: ubuntu-latest
145144
strategy:
146145
matrix:
147-
python-version: [3.7, 3.8, 3.9, "3.10", "3.11"]
146+
python-version: [3.9, "3.10", 3.11, 3.12, 3.13]
148147
kokkos-branch: ['develop']
149148

150149
steps:
@@ -160,16 +159,15 @@ jobs:
160159
sudo apt-get update &&
161160
sudo apt-get install -y build-essential gcc g++ ninja-build &&
162161
python -m pip install --upgrade pip &&
163-
python -m pip install 'cmake==3.20.2'
162+
python -m pip install 'cmake==3.31.6'
164163

165164
- name: Install Kokkos
166-
if: ${{ matrix.python-version != '3.7' }}
167165
run:
168166
git clone -b ${{ matrix.kokkos-branch }} https://github.com/kokkos/kokkos.git /tmp/kokkos-source &&
169167
cmake -B /tmp/kokkos-build
170168
-DKokkos_ENABLE_SERIAL=ON
171169
-DKokkos_ENABLE_THREADS=ON
172-
-DCMAKE_CXX_STANDARD=17
170+
-DCMAKE_CXX_STANDARD=20
173171
-DCMAKE_POSITION_INDEPENDENT_CODE=ON
174172
/tmp/kokkos-source &&
175173
cmake --build /tmp/kokkos-build --target all --parallel 2 &&
@@ -179,7 +177,7 @@ jobs:
179177
run:
180178
python -m pip install -r requirements.txt &&
181179
python -m pip install pytest &&
182-
PYKOKKOS_BASE_SETUP_ARGS="-DENABLE_WERROR=ON -DENABLE_MEMORY_TRAITS=ON -DENABLE_LAYOUTS=ON -DENABLE_VIEW_RANKS=2 -DCMAKE_CXX_STANDARD=17 -DKokkos_ENABLE_THREADS=ON -DCMAKE_POSITION_INDEPENDENT_CODE=ON -DBUILD_SHARED_LIBS=OFF"
180+
PYKOKKOS_BASE_SETUP_ARGS="-DENABLE_WERROR=ON -DENABLE_MEMORY_TRAITS=ON -DENABLE_LAYOUTS=ON -DENABLE_VIEW_RANKS=2 -DCMAKE_CXX_STANDARD=20 -DKokkos_ENABLE_THREADS=ON -DCMAKE_POSITION_INDEPENDENT_CODE=ON -DBUILD_SHARED_LIBS=OFF"
183181
python -m pip install -v --user --no-deps -e .
184182

185183
- name: Import Test
@@ -197,7 +195,7 @@ jobs:
197195
runs-on: ubuntu-latest
198196
strategy:
199197
matrix:
200-
python-version: [3.9]
198+
python-version: [3.9, "3.10", 3.11, 3.12, 3.13]
201199

202200
steps:
203201
- uses: actions/checkout@v3
@@ -215,7 +213,7 @@ jobs:
215213
sudo apt-get update &&
216214
sudo apt-get install -y build-essential gcc g++ ninja-build &&
217215
python -m pip install --upgrade pip &&
218-
python -m pip install 'cmake==3.18.4'
216+
python -m pip install 'cmake==3.31.6'
219217

220218
- name: Generate Hierarchy
221219
run: |
@@ -226,7 +224,7 @@ jobs:
226224
227225
- name: Generate CMakeLists.txt
228226
run: |
229-
echo -e "cmake_minimum_required(VERSION 3.16.0 FATAL_ERROR)\nproject(pykokkos-base-as-subproject LANGUAGES CXX)\nadd_subdirectory(kokkos)\nadd_subdirectory(pybind11)\nadd_subdirectory(pykokkos-base)" > ${{github.workspace}}/CMakeLists.txt
227+
echo -e "cmake_minimum_required(VERSION 3.31.0 FATAL_ERROR)\nproject(pykokkos-base-as-subproject LANGUAGES CXX)\nadd_subdirectory(kokkos)\nadd_subdirectory(pybind11)\nadd_subdirectory(pykokkos-base)" > ${{github.workspace}}/CMakeLists.txt
230228
cat ${{github.workspace}}/CMakeLists.txt
231229
232230
- name: Configure CMake

.github/workflows/python-package.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: ubuntu-latest
1515
strategy:
1616
matrix:
17-
python-version: [3.7, 3.8, 3.9]
17+
python-version: [3.9, "3.10", 3.11, 3.12, 3.13]
1818

1919
steps:
2020
- uses: actions/checkout@v2
@@ -35,10 +35,10 @@ jobs:
3535
flake8 . --count --statistics
3636
3737
formatting:
38-
runs-on: ubuntu-18.04
38+
runs-on: ubuntu-latest
3939
strategy:
4040
matrix:
41-
python-version: [3.8]
41+
python-version: [3.13]
4242

4343
steps:
4444
- uses: actions/checkout@v2

0 commit comments

Comments
 (0)