Skip to content

Commit 777bc73

Browse files
authored
Use a requirement file to install dpctl wheel package (#2413)
The PR proposes to use a requirement file while installing dpctl wheel package through GitHub actions in `Build docs` and `Coverage` workflows. This will allow to specified the required dpctl version in one requirement file.
1 parent 43095fb commit 777bc73

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

Diff for: .github/workflows/build-sphinx.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ jobs:
4242
oneapi-pkgs-env: ''
4343
# Enable env when it's required to use only conda packages without OneAPI installation
4444
# oneapi-pkgs-env: '${{ github.workspace }}/environments/oneapi_pkgs.yml'
45+
dpctl-pkg-txt: 'environments/dpctl_pkg.txt'
4546

4647
steps:
4748
- name: Cancel Previous Runs
@@ -149,7 +150,7 @@ jobs:
149150
- name: Install dpctl
150151
if: env.oneapi-pkgs-env == ''
151152
run: |
152-
pip install -i https://pypi.anaconda.org/dppy/label/dev/simple dpctl==0.20.0dev0
153+
pip install -r ${{ env.dpctl-pkg-txt }}
153154
154155
- name: Conda info
155156
run: |

Diff for: .github/workflows/generate_coverage.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ jobs:
2626
oneapi-pkgs-env: ''
2727
# Enable env when it's required to use only conda packages without OneAPI installation
2828
# oneapi-pkgs-env: '${{ github.workspace }}/environments/oneapi_pkgs.yml'
29+
dpctl-pkg-txt: 'environments/dpctl_pkg.txt'
2930

3031
steps:
3132
- name: Cancel Previous Runs
@@ -108,7 +109,7 @@ jobs:
108109
- name: Install dpctl
109110
if: env.oneapi-pkgs-env == ''
110111
run: |
111-
pip install -i https://pypi.anaconda.org/dppy/label/dev/simple dpctl==0.20.0dev0
112+
pip install -r ${{ env.dpctl-pkg-txt }}
112113
113114
- name: Conda info
114115
run: |

Diff for: environments/dpctl_pkg.txt

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
--index-url https://pypi.anaconda.org/dppy/label/dev/simple
2+
dpctl>=0.20.0dev0

0 commit comments

Comments
 (0)