forked from IntelPython/numba-dpex
-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (52 loc) · 1.54 KB
/
coverage.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
49
50
51
52
53
54
55
56
57
58
59
60
61
name: Coverage
on:
push:
branches:
- main
pull_request:
permissions: read-all
jobs:
main:
name: Generate coverage and push to Coveralls.io
runs-on: ubuntu-latest
permissions:
pull-requests: write
defaults:
run:
shell: bash -l {0}
steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
- name: Checkout repo
uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: conda-incubator/setup-miniconda@v3
with:
python-version: '3.10'
miniforge-variant: Mambaforge
miniforge-version: latest
activate-environment: "coverage"
channel-priority: "disabled"
environment-file: environment/coverage.yml
- name: Build numba-dpex
run: |
export PATH=$CONDA/bin-llvm:$PATH
CC=icx CXX=icpx python setup.py develop
- name: Test installation
run: |
conda list
python -c "import numba_dpex; print(numba_dpex.__file__)"
- name: Dump coverage test environment
run: |
conda env export > /tmp/env-cov.yml
cat /tmp/env-cov.yml
# Ignoring test due to opencl driver optimization bug
- name: Run tests with coverage
run: |
pytest -q --cov --cov-report xml --pyargs numba_dpex \
-k 'not test_1d_strided_dpnp_array_in_kernel[2]'
- name: Coveralls
uses: coverallsapp/github-action@v2