Skip to content

Commit e16aedd

Browse files
authored
Manual run tests w/ Numba PR (IntelPython#586)
* Add workflow for testing w/ numba PRs
1 parent c5ef786 commit e16aedd

File tree

1 file changed

+76
-0
lines changed

1 file changed

+76
-0
lines changed

.github/workflows/numba.yml

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
name: Test w/ Numba PRs
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
numba_pr:
7+
description: Numba PR
8+
required: true
9+
default: 7177
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
15+
env:
16+
ID: ${{ github.event.inputs.numba_pr }}
17+
18+
steps:
19+
- name: Checkout numba-dppy
20+
uses: actions/checkout@v2
21+
with: {path: numba-dppy}
22+
23+
- name: Checkout numba
24+
uses: actions/checkout@v2
25+
with:
26+
repository: numba/numba
27+
path: numba
28+
29+
# See https://docs.github.com/en/github/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally
30+
- name: Checkout numba PR
31+
run: |
32+
cd numba
33+
git fetch origin pull/${{env.ID}}/head:pr${{env.ID}}
34+
git checkout pr${{env.ID}}
35+
36+
- name: Add conda to system path
37+
shell: bash
38+
run: echo $CONDA/bin >> $GITHUB_PATH
39+
40+
- name: Configure environment
41+
run: |
42+
cd numba-dppy
43+
conda env update -n base -f environment.yml --prune
44+
conda remove -n base numba --force
45+
46+
conda list
47+
which python
48+
49+
- name: Install numba
50+
run: |
51+
cd numba
52+
git log -1
53+
python setup.py develop
54+
55+
- name: Install numba-dppy
56+
run: |
57+
cd numba-dppy
58+
git log -1
59+
python setup.py develop
60+
61+
- name: Test installation
62+
run: |
63+
conda list
64+
65+
# echo "libintelocl.so" | tee /etc/OpenCL/vendors/intel-cpu.icd
66+
export OCL_ICD_FILENAMES=libintelocl.so
67+
68+
python -c "import numba; print(numba.__file__)"
69+
python -c "import numba_dppy; print(numba_dppy.__file__)"
70+
71+
- name: Test
72+
run: |
73+
# echo "libintelocl.so" | tee /etc/OpenCL/vendors/intel-cpu.icd
74+
export OCL_ICD_FILENAMES=libintelocl.so
75+
76+
pytest -q -ra --disable-warnings --pyargs numba_dppy -vv

0 commit comments

Comments
 (0)