-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
48 lines (41 loc) · 1.31 KB
/
sycl_tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: XGBoost CI (oneAPI)
on: [push, pull_request]
permissions:
contents: read # to fetch code (actions/checkout)
defaults:
run:
shell: bash -l {0}
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
env:
BRANCH_NAME: >-
${{ github.event.pull_request.number && 'PR-' }}${{ github.event.pull_request.number || github.ref_name }}
jobs:
gtest-cpu-sycl:
name: Test Google C++ unittest (CPU SYCL)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: 'true'
- uses: dmlc/xgboost-devops/actions/miniforge-setup@main
with:
environment-name: linux_sycl_test
environment-file: ops/conda_env/linux_sycl_test.yml
- name: Run gtest
run: bash ops/pipeline/build-test-sycl.sh gtest
python-sycl-tests-on-ubuntu:
name: Test XGBoost Python package with SYCL
runs-on: ubuntu-latest
timeout-minutes: 90
steps:
- uses: actions/checkout@v4
with:
submodules: 'true'
- uses: dmlc/xgboost-devops/actions/miniforge-setup@main
with:
environment-name: linux_sycl_test
environment-file: ops/conda_env/linux_sycl_test.yml
- name: Test Python package
run: bash ops/pipeline/build-test-sycl.sh pytest