Skip to content

Commit 22f1f6d

Browse files
authored
Use Python 3.9 [public CI] (#982)
* Use Python 3.9 in conda-package.yml * Use oneAPI 2021.3
1 parent 6117821 commit 22f1f6d

File tree

2 files changed

+17
-7
lines changed

2 files changed

+17
-7
lines changed

.github/workflows/conda-package.yml

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ env:
88
jobs:
99
build:
1010
runs-on: ubuntu-20.04
11+
12+
strategy:
13+
matrix:
14+
python: [3.8, 3.9]
15+
1116
steps:
1217
- name: Install Intel repository
1318
run: |
@@ -24,9 +29,9 @@ jobs:
2429
sudo apt install --reinstall -y gcc-9 g++-9 libstdc++-9-dev
2530
- name: Install Intel OneAPI
2631
run: |
27-
sudo apt-get install intel-oneapi-mkl \
28-
intel-oneapi-mkl-devel \
29-
intel-oneapi-dpcpp-cpp-compiler
32+
sudo apt-get install intel-oneapi-mkl=2021.3.0-520 \
33+
intel-oneapi-mkl-devel=2021.3.0-520 \
34+
intel-oneapi-compiler-dpcpp-cpp=2021.3.0-3350
3035
- name: Checkout repo
3136
uses: actions/checkout@v2
3237
with:
@@ -41,7 +46,7 @@ jobs:
4146
. /opt/intel/oneapi/setvars.sh
4247
. ./scripts/install_cmake_lin.sh
4348
CHANNELS="-c dppy/label/dev -c intel -c defaults --override-channels"
44-
VERSIONS="--python 3.8"
49+
VERSIONS="--python ${{ matrix.python }}"
4550
TEST="--no-test"
4651
conda build \
4752
$TEST \
@@ -52,18 +57,23 @@ jobs:
5257
- name: Upload artifact
5358
uses: actions/upload-artifact@v2
5459
with:
55-
name: dpnp ${{ runner.os }}
60+
name: dpnp ${{ runner.os }} ${{ matrix.python }}
5661
path: /usr/share/miniconda/conda-bld/linux-64/dpnp-*.tar.bz2
5762

5863
upload:
5964
needs: build
6065
if: ${{ github.ref == 'refs/heads/master' }}
6166
runs-on: ubuntu-latest
67+
68+
strategy:
69+
matrix:
70+
python: [3.8, 3.9]
71+
6272
steps:
6373
- name: Download artifact
6474
uses: actions/download-artifact@v2
6575
with:
66-
name: dpnp ${{ runner.os }}
76+
name: dpnp ${{ runner.os }} ${{ matrix.python }}
6777

6878
- name: Install anaconda-client
6979
run: conda install anaconda-client

conda-recipe/meta.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ requirements:
88
host:
99
- python
1010
- setuptools
11-
- numpy >=1.15 # [win or osx or py==38]
11+
- numpy >=1.15 # [win or osx or py>=38]
1212
- numpy 1.17 # [linux and py==37]
1313
- cython
1414
- cmake >=3.16.5

0 commit comments

Comments
 (0)