Skip to content

Commit 164af70

Browse files
committed
Run tests and examples in parallel
1 parent f1e0eff commit 164af70

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/conda-package.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ jobs:
8989
path: ${{ env.WHEELS_OUTPUT_FOLDER }}${{ env.WHEELS_NAME }}-*.whl
9090

9191
test:
92-
name: Test ['${{ matrix.os }}', python='${{ matrix.python }}']
92+
name: Test ['${{ matrix.os }}', '${{ matrix.scope }}', python='${{ matrix.python }}']
9393

9494
needs: build
9595

@@ -106,10 +106,10 @@ jobs:
106106
os: [ubuntu-20.04, ubuntu-latest, windows-latest]
107107
experimental: [false]
108108
use_mlir: [false]
109-
run_gdb: [true, false]
109+
scope: ['tests', 'examples', 'gdb']
110110
exclude:
111111
- os: windows-latest
112-
run_gdb: true
112+
scope: 'gdb'
113113

114114
continue-on-error: ${{ matrix.experimental || matrix.use_mlir }}
115115

@@ -214,14 +214,14 @@ jobs:
214214
run: python -c "import numba_dpex"
215215

216216
- name: Run tests
217-
if: ${{!matrix.run_gdb}}
217+
if: ${{ matrix.scope == 'tests' }}
218218
env:
219219
NUMBA_DPEX_USE_MLIR: ${{ matrix.use_mlir && '1' || '0' }}
220220
run: |
221221
pytest -q -ra --disable-warnings --pyargs ${{ env.MODULE_NAME }} -vv
222222
223223
- name: Run examples
224-
if: ${{!matrix.run_gdb}}
224+
if: ${{ matrix.scope == 'examples' }}
225225
shell: bash -l {0}
226226
run: |
227227
cd ${{ env.EXAMPLES_PATH }}
@@ -232,7 +232,7 @@ jobs:
232232
done
233233
234234
- name: Run gdb tests
235-
if: ${{matrix.run_gdb}}
235+
if: ${{ matrix.scope == 'gdb' }}
236236
env:
237237
GDB_URL: https://registrationcenter-download.intel.com/akdlm/IRC_NAS/fcea1bcd-6a63-4849-b304-906ff71dc2c0/l_dpcpp_dbg_p_2023.2.0.49333_offline.sh
238238
GDB_INSTALLER: l_dpcpp_dbg_p_2023.2.0.49333_offline.sh

0 commit comments

Comments
 (0)