Skip to content

Commit 1f8e4b3

Browse files
Merge pull request #843 from IntelPython/ci-use-py39-py310
Start using Python 3.10
1 parent 3664a3a commit 1f8e4b3

File tree

5 files changed

+36
-22
lines changed

5 files changed

+36
-22
lines changed

.github/workflows/conda-package.yml

Lines changed: 29 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818

1919
strategy:
2020
matrix:
21-
python: [3.8, 3.9]
21+
python: ['3.8', '3.9', '3.10']
2222
steps:
2323
- uses: actions/checkout@v2
2424
with:
@@ -63,7 +63,7 @@ jobs:
6363

6464
strategy:
6565
matrix:
66-
python: [3.8, 3.9]
66+
python: ['3.8', '3.9']
6767
env:
6868
conda-bld: C:\Miniconda\conda-bld\win-64\
6969
steps:
@@ -102,13 +102,9 @@ jobs:
102102

103103
strategy:
104104
matrix:
105-
python: [3.8, 3.9]
105+
python: ['3.8', '3.9', '3.10']
106106
experimental: [false]
107107
runner: [ubuntu-latest]
108-
# include:
109-
# - python: 3.8
110-
# experimental: true
111-
# runner: [self-hosted, gen9]
112108
continue-on-error: ${{ matrix.experimental }}
113109
env:
114110
CHANNELS: -c intel -c defaults --override-channels
@@ -178,7 +174,7 @@ jobs:
178174

179175
strategy:
180176
matrix:
181-
python: [3.8, 3.9]
177+
python: ['3.8', '3.9']
182178
experimental: [false]
183179
runner: [windows-latest]
184180
continue-on-error: ${{ matrix.experimental }}
@@ -199,13 +195,23 @@ jobs:
199195
run: conda install conda-build
200196
- name: Create conda channel
201197
run: |
202-
mkdir -p $GITHUB_WORKSPACE/channel/win-64
203-
mv ${{ env.PACKAGE_NAME }}-*.tar.bz2 ${{ env.GITHUB_WORKSPACE }}/channel/win-64
198+
mkdir ${{ env.GITHUB_WORKSPACE }}\channel\win-64
199+
move ${{ env.PACKAGE_NAME }}-*.tar.bz2 ${{ env.GITHUB_WORKSPACE }}\channel\win-64
204200
conda index ${{ env.GITHUB_WORKSPACE }}/channel
205201
# Test channel
206-
conda search ${{ env.PACKAGE_NAME }} -c ${{ env.GITHUB_WORKSPACE }}/channel --override-channels
202+
conda search ${{ env.PACKAGE_NAME }} -c ${{ env.GITHUB_WORKSPACE }}/channel --override-channels --info --json > ${{ env.GITHUB_WORKSPACE }}\ver.json
203+
more ${{ env.GITHUB_WORKSPACE }}\ver.json
207204
- name: Collect dependencies
208-
run: conda install ${{ env.PACKAGE_NAME }} python=${{ matrix.python }} -c ${{ env.GITHUB_WORKSPACE }}/channel ${{ env.CHANNELS }} --only-deps --dry-run > lockfile
205+
shell: cmd
206+
run: |
207+
@ECHO ON
208+
copy /Y ${{ env.GITHUB_WORKSPACE }}\ver.json .
209+
set "SCRIPT=%VER_SCRIPT1% %VER_SCRIPT2%"
210+
FOR /F "tokens=* USEBACKQ" %%F IN (`python -c "%SCRIPT%"`) DO (
211+
SET PACKAGE_VERSION=%%F
212+
)
213+
conda install ${{ env.PACKAGE_NAME }}=%PACKAGE_VERSION% python=${{ matrix.python }} -c ${{ env.GITHUB_WORKSPACE }}/channel ${{ env.CHANNELS }} --only-deps --dry-run > lockfile
214+
more lockfile
209215
- name: Cache conda packages
210216
uses: actions/cache@v2
211217
env:
@@ -220,8 +226,15 @@ jobs:
220226
- name: Install opencl_rt
221227
run: conda install opencl_rt -c intel --override-channels
222228
- name: Install dpctl
229+
shell: cmd
223230
run: |
224-
conda install ${{ env.PACKAGE_NAME }} pytest python=${{ matrix.python }} -c ${{ env.GITHUB_WORKSPACE }}/channel ${{ env.CHANNELS }}
231+
@ECHO ON
232+
copy /Y ${{ env.GITHUB_WORKSPACE }}\ver.json .
233+
set "SCRIPT=%VER_SCRIPT1% %VER_SCRIPT2%"
234+
FOR /F "tokens=* USEBACKQ" %%F IN (`python -c "%SCRIPT%"`) DO (
235+
SET PACKAGE_VERSION=%%F
236+
)
237+
conda install ${{ env.PACKAGE_NAME }}=%PACKAGE_VERSION% pytest python=${{ matrix.python }} -c ${{ env.GITHUB_WORKSPACE }}/channel ${{ env.CHANNELS }}
225238
# Test installed packages
226239
conda list
227240
- name: Add library
@@ -274,7 +287,7 @@ jobs:
274287
runs-on: ubuntu-latest
275288
strategy:
276289
matrix:
277-
python: [3.8, 3.9]
290+
python: ['3.8', '3.9', '3.10']
278291
steps:
279292
- name: Download artifact
280293
uses: actions/download-artifact@v2
@@ -299,7 +312,7 @@ jobs:
299312
runs-on: windows-latest
300313
strategy:
301314
matrix:
302-
python: [3.8, 3.9]
315+
python: ['3.8', '3.9', '3.10']
303316
steps:
304317
- name: Download artifact
305318
uses: actions/download-artifact@v2
@@ -324,7 +337,7 @@ jobs:
324337
runs-on: ${{ matrix.runner }}
325338
strategy:
326339
matrix:
327-
python: [3.9]
340+
python: ['3.9']
328341
experimental: [false]
329342
runner: [ubuntu-latest]
330343
continue-on-error: ${{ matrix.experimental }}

.github/workflows/generate-coverage.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
- name: Setup Python
4040
uses: actions/setup-python@v2
4141
with:
42-
python-version: '3.9'
42+
python-version: '3.10'
4343
architecture: x64
4444

4545
- name: Cache Gtest

.github/workflows/generate-docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
if: ${{ !github.event.pull_request || github.event.action != 'closed' }}
4444
uses: actions/setup-python@v2
4545
with:
46-
python-version: '3.8'
46+
python-version: '3.10'
4747
architecture: x64
4848
- name: Install sphinx dependencies
4949
if: ${{ !github.event.pull_request || github.event.action != 'closed' }}

conda-recipe/conda_build_config.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
numpy:
2+
- 1.21

conda-recipe/meta.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ source:
88
build:
99
number: {{ GIT_DESCRIBE_NUMBER }}
1010
script_env:
11-
- ONEAPI_ROOT # for wheel on Linux
1211
- WHEELS_OUTPUT_FOLDER
1312

1413
requirements:
@@ -22,12 +21,12 @@ requirements:
2221
- python
2322
- ninja
2423
- scikit-build
25-
- numpy 1.19
24+
- numpy
2625
- wheel
2726
run:
2827
- python
29-
- {{ pin_compatible('numpy') }}
30-
- dpcpp-cpp-rt >=2022.0
28+
- {{ pin_compatible('numpy', min_pin='x.x', max_pin='x') }}
29+
- dpcpp-cpp-rt >=2022.1
3130

3231
test:
3332
requires:

0 commit comments

Comments
 (0)