Skip to content

Commit 80210c5

Browse files
authored
Merge pull request #96 from IntelPython/add-py-3.14-to-gh-actions
Add testing with python 3.14 to GitHub actions
2 parents 5f67186 + c2be31c commit 80210c5

File tree

4 files changed

+43
-5
lines changed

4 files changed

+43
-5
lines changed

.github/workflows/build-docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
if: ${{ !github.event.pull_request || github.event.action != 'closed' }}
3636
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
3737
with:
38-
python-version: "3.13"
38+
python-version: "3.14"
3939
architecture: x64
4040
- name: Install sphinx dependencies
4141
if: ${{ !github.event.pull_request || github.event.action != 'closed' }}

.github/workflows/build-with-clang.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212

1313
strategy:
1414
matrix:
15-
python: ["3.10", "3.11", "3.12", "3.13"]
15+
python: ["3.10", "3.11", "3.12", "3.13", "3.14"]
1616
numpy_version: ["numpy'>=2'"]
1717
env:
1818
ONEAPI_ROOT: /opt/intel/oneapi

.github/workflows/conda-package-cf.yml

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ jobs:
2828
numpy: "2.3"
2929
- python: "3.13"
3030
numpy: "2.3"
31+
- python: "3.14"
32+
numpy: "2.3"
33+
3134
steps:
3235
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3336
with:
@@ -36,6 +39,7 @@ jobs:
3639
- name: Set pkgs_dirs
3740
run: |
3841
echo "pkgs_dirs: [~/.conda/pkgs]" >> ~/.condarc
42+
3943
- name: Cache conda packages
4044
uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
4145
env:
@@ -50,8 +54,10 @@ jobs:
5054
5155
- name: Add conda to system path
5256
run: echo $CONDA/bin >> $GITHUB_PATH
57+
5358
- name: Install conda-build
5459
run: conda install conda-build
60+
5561
- name: Build conda package
5662
run: |
5763
CHANNELS="-c conda-forge --override-channels"
@@ -63,6 +69,7 @@ jobs:
6369
$VERSIONS \
6470
$CHANNELS \
6571
conda-recipe-cf
72+
6673
- name: Upload artifact
6774
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
6875
with:
@@ -83,12 +90,17 @@ jobs:
8390
numpy: "2.3"
8491
- python: "3.13"
8592
numpy: "2.3"
93+
- python: "3.14"
94+
numpy: "2.3"
95+
8696
env:
8797
conda-bld: C:\Miniconda\conda-bld\win-64\
98+
8899
steps:
89100
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
90101
with:
91102
fetch-depth: 0
103+
92104
- uses: conda-incubator/setup-miniconda@fc2d68f6413eb2d87b895e92f8584b5b94a10167 # v3.3.0
93105
with:
94106
conda-remove-defaults: true
@@ -107,12 +119,16 @@ jobs:
107119
restore-keys: |
108120
${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-python-${{ matrix.python }}-
109121
${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-
122+
110123
- name: Install conda-build
111124
run: conda install -n base -y conda-build
125+
112126
- name: Setup MSVC
113-
uses: ilammy/msvc-dev-cmd@0b201ec74fa43914dc39ae48a89fd1d8cb592756 # v1.13.0
127+
uses: ilammy/msvc-dev-cmd@0b201ec74fa43914dc39ae48a89fd1d8cb592756 # v1.13.0
128+
114129
- name: Build conda package
115130
run: conda build --no-test --python ${{ matrix.python }} --numpy ${{ matrix.numpy }} -c conda-forge --override-channels conda-recipe-cf
131+
116132
- name: Upload artifact
117133
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
118134
with:
@@ -134,6 +150,8 @@ jobs:
134150
numpy: "2.3"
135151
- python: "3.13"
136152
numpy: "2.3"
153+
- python: "3.14"
154+
numpy: "2.3"
137155

138156
env:
139157
CHANNELS: -c conda-forge --override-channels
@@ -143,10 +161,13 @@ jobs:
143161
uses: actions/download-artifact@70fc10c6e5e1ce46ad2ea6f2b72d43f7d47b13c3 # v8.0.0
144162
with:
145163
name: ${{ env.PACKAGE_NAME }} ${{ runner.os }} Python ${{ matrix.python }}
164+
146165
- name: Add conda to system path
147166
run: echo $CONDA/bin >> $GITHUB_PATH
167+
148168
- name: Install conda-build
149169
run: conda install conda-build
170+
150171
- name: Create conda channel
151172
run: |
152173
mkdir -p $GITHUB_WORKSPACE/channel/linux-64
@@ -156,16 +177,19 @@ jobs:
156177
# Test channel
157178
conda search $PACKAGE_NAME -c $GITHUB_WORKSPACE/channel --override-channels --info --json > $GITHUB_WORKSPACE/ver.json
158179
cat ver.json
180+
159181
- name: Collect dependencies
160182
run: |
161183
. $CONDA/etc/profile.d/conda.sh
162184
CHANNELS="-c $GITHUB_WORKSPACE/channel ${{ env.CHANNELS }}"
163185
export PACKAGE_VERSION=$(python -c "${VER_SCRIPT1} ${VER_SCRIPT2}")
164186
conda create -n ${{ env.TEST_ENV_NAME }} $PACKAGE_NAME=${PACKAGE_VERSION} python=${{ matrix.python }} numpy=${{ matrix.numpy }} $CHANNELS --only-deps --dry-run > lockfile
165187
cat lockfile
188+
166189
- name: Set pkgs_dirs
167190
run: |
168191
echo "pkgs_dirs: [~/.conda/pkgs]" >> ~/.condarc
192+
169193
- name: Cache conda packages
170194
uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
171195
env:
@@ -186,6 +210,7 @@ jobs:
186210
conda create -n ${{ env.TEST_ENV_NAME }} $PACKAGE_NAME=${PACKAGE_VERSION} pytest python=${{ matrix.python }} numpy=${{ matrix.numpy }} $CHANNELS
187211
# Test installed packages
188212
conda list
213+
189214
- name: Run tests
190215
run: |
191216
. $CONDA/etc/profile.d/conda.sh
@@ -207,6 +232,8 @@ jobs:
207232
numpy: "2.3"
208233
- python: "3.13"
209234
numpy: "2.3"
235+
- python: "3.14"
236+
numpy: "2.3"
210237

211238
env:
212239
CHANNELS: -c conda-forge --override-channels
@@ -216,15 +243,18 @@ jobs:
216243
uses: actions/download-artifact@70fc10c6e5e1ce46ad2ea6f2b72d43f7d47b13c3 # v8.0.0
217244
with:
218245
name: ${{ env.PACKAGE_NAME }} ${{ runner.os }} Python ${{ matrix.python }}
246+
219247
- uses: conda-incubator/setup-miniconda@fc2d68f6413eb2d87b895e92f8584b5b94a10167 # v3.3.0
220248
with:
221249
conda-remove-defaults: true
222250
channels: conda-forge
223251
auto-activate: true
224252
activate-environment: base
253+
225254
- name: Install conda-build
226255
# Needed to be able to run conda index
227256
run: conda install conda-build
257+
228258
- name: Create conda channel
229259
run: |
230260
mkdir ${{ env.GITHUB_WORKSPACE }}\channel\win-64
@@ -233,6 +263,7 @@ jobs:
233263
# Test channel
234264
conda search ${{ env.PACKAGE_NAME }} -c ${{ env.GITHUB_WORKSPACE }}/channel --override-channels --info --json > ${{ env.GITHUB_WORKSPACE }}\ver.json
235265
more ${{ env.GITHUB_WORKSPACE }}\ver.json
266+
236267
- name: Collect dependencies
237268
shell: cmd
238269
run: |
@@ -244,6 +275,7 @@ jobs:
244275
)
245276
conda create -n ${{ env.TEST_ENV_NAME }} ${{ env.PACKAGE_NAME }}=%PACKAGE_VERSION% python=${{ matrix.python }} numpy=${{ matrix.numpy }} -c ${{ env.GITHUB_WORKSPACE }}/channel ${{ env.CHANNELS }} --only-deps --dry-run > lockfile
246277
more lockfile
278+
247279
- name: Cache conda packages
248280
uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
249281
env:
@@ -255,6 +287,7 @@ jobs:
255287
restore-keys: |
256288
${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-python-${{ matrix.python }}-
257289
${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-
290+
258291
- name: Install mkl_random
259292
shell: cmd
260293
run: |
@@ -267,6 +300,7 @@ jobs:
267300
conda create -n ${{ env.TEST_ENV_NAME }} ${{ env.PACKAGE_NAME }}=%PACKAGE_VERSION% pytest python=${{ matrix.python }} numpy=${{ matrix.numpy }} -c ${{ env.GITHUB_WORKSPACE }}/channel ${{ env.CHANNELS }}
268301
# Test installed packages
269302
conda list
303+
270304
- name: Run tests
271305
run: |
272306
conda activate -n ${{ env.TEST_ENV_NAME }}

.github/workflows/conda-package.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020

2121
strategy:
2222
matrix:
23-
python: ["3.10", "3.11", "3.12", "3.13"]
23+
python: ["3.10", "3.11", "3.12", "3.13", "3.14"]
2424

2525
steps:
2626
- name: Cancel Previous Runs
@@ -82,7 +82,7 @@ jobs:
8282

8383
strategy:
8484
matrix:
85-
python: ["3.10", "3.11", "3.12", "3.13"]
85+
python: ["3.10", "3.11", "3.12", "3.13", "3.14"]
8686

8787
steps:
8888
- name: Cancel Previous Runs
@@ -147,6 +147,8 @@ jobs:
147147
numpy: "2.3"
148148
- python: "3.13"
149149
numpy: "2.3"
150+
- python: "3.14"
151+
numpy: "2.3"
150152

151153
env:
152154
CHANNELS: -c https://software.repos.intel.com/python/conda -c conda-forge --override-channels
@@ -230,6 +232,8 @@ jobs:
230232
numpy: "2.3"
231233
- python: "3.13"
232234
numpy: "2.3"
235+
- python: "3.14"
236+
numpy: "2.3"
233237

234238
env:
235239
CHANNELS: -c https://software.repos.intel.com/python/conda -c conda-forge --override-channels

0 commit comments

Comments
 (0)